Tailwind not loading over CDN using assetPrefix
Unanswered
Spectacled bear posted this in #help-forum
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)
Changes done
post-build-script.js (newly created)
package.json (updated build script)
nextconfig (assetPrefix with no slash at the end)
7 Replies
@Spectacled bear 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)
have you tried to build with
output: 'export' in next.config.js?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 s3Spectacled bearOP
@Ray No error but tailwind is not loading