reactjs - Next.js - I need static error page template in non-static app router based app - Stack Overflow
I have a React app using Next.js with the app router. The app is not a static site.
I'm also using Python for the backend, so I need a single static HTML file which could be used as a template for the backend (non-Next) errors. I need to be able to insert arbitrary error messages into it by editing the HTML. However I also need it to use the normal layout the rest of the site uses, and this includes running the React code, especially the styled components styles.
I've tried just copying the _not-found.html file, and replacing the message text here, however if I allow the JS to run, the text is replaced back with the original not found text.
How can I do that?
最新文章
- Win10兼容安卓项目泡汤!微软做错了?
- 网络监控火速普及 产品布局有待调整
- 在沉默中炸裂爆发!2013安卓系统大事记
- 微软答疑Surface平板:32GB版可用空间20GB
- How can I design a button with two colors and a curved border in CSS? - Stack Overflow
- oauth - SSO to 3rd party through AzureAD - Stack Overflow
- django - Multipe one-to-many relation between two models - Stack Overflow
- perl - How to embed Teraterm in a Visual Studio project - Stack Overflow
- c# - Getting username of logged in user with NegotiateWindows domain credentials - Stack Overflow
- python - Filtering from index and comparing row value with all values in column - Stack Overflow
- sql - PostgreSQL ERROR: cannot accumulate arrays of different dimensionality - Stack Overflow
- swiftui - Swift Mocking a throwing function - Stack Overflow
- Power query performance (SOAP connector) very low on migrating from Excel to Power BI Desktop - Stack Overflow
- c++ - C++20 compile time retrieve size of a vector - Stack Overflow
- mapping - How to display drawdown contours calculated with the Theis equation to display on an interactive map in Dash with Pyth
- epub - When extracting Kobo bookmarks frm KoboReader.sqlite, how do I determine pageslocations - Stack Overflow
- sockets - PICO WMicropython websocket client can't send to PHP websocket properly - Stack Overflow