Next.js Discord

Discord Forum

Tailwind not loading over CDN using assetPrefix

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
Hi, I'm using a postbuild script to upload the static content to s3 after every build. Now when im running the project, all files are getting fetched successfully but tailwind. Tailwind css is not working with assetPrefix.

Changes done
post-build-script.js (newly created)
package.json (updated build script)
nextconfig (assetPrefix with no slash at the end)

7 Replies

Spectacled bearOP
@Ray not working with output export
The script
@Spectacled bear <@743561772069421169> not working with output export
what error you got? I think you need to build with output: 'export' and upload the out folder to s3
Spectacled bearOP
@Ray No error but tailwind is not loading