Replies: 3 comments 4 replies
-
Hey, @NotTimTam. I'm having the same issue. How did you fix it? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm facing the same issue. How did you fix it? When I build without Docker it works well, but when I run build through a Docker, the output does not include the CSS files. |
Beta Was this translation helpful? Give feedback.
1 reply
-
hi , i am having same issue on react project(all other services are working fine), css is applied to element on on browser but it is not visible. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hi, I am running Next.js 14.1.0 with the App router.
I use a combination of SCSS global files and module files in the project to style everything.
I run a custom express server that serves the Next.js content inside of an API.
When I run in dev mode, or build the app and run in production mode locally, everything works fine, but when I run the app inside of a docker container, the HTML files generated with
next build
don't link any CSS, even though the CSS files are present inside of.next/static/css
.When a page is served to the client, all content and JS is there and works, but no styles are present.
Thanks
Additional information
Here is my package.json:
Here is my dockerfile:
And here is the server file:
Beta Was this translation helpful? Give feedback.
All reactions