Next.js Discord

Discord Forum

Cant get images to work with github pages

Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
tried setting assetPrefix, basePath in next config but seems like it takes no effect when i deploy and it rebuilds, i can see in image src that the basePath is not here, instead it points directly to image file, which is right in development because im pointing to image in public folder but not right in production. If i manually add basePath myself in dom in image src it works, it seems like setting those base paths takes no effect

0 Replies