Can I refresh the service's file list in real time when static files in the output directory _next change #51499
Unanswered
kiner-tang
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Summary
In order to extract styles on demand better when rendering on the server side, and optimize the application by using the browser's caching mechanism, we hope to extract the styles of components used in the current page on demand at the compilation stage, and output the style file to the build directory _next, which can work normally in SSG mode, but in SSR mode is unexpected, it can be extracted on demand. Since the build command does not render the page generation style, it will only be generated when the user accesses the page. At this time, we output the css file generated in the directory _next, and the next service does not incorporate it into the management, resulting in 404 when accessing the file.
What to expect?
Is there some way that we can refresh the static file list in real time if the _next directory file changes after running the start command to ensure that the newly added file is accessible
Additional information
Example
ant-design/ant-design-examples#11
Beta Was this translation helpful? Give feedback.
All reactions