How to set base path for the preview #2333
Replies: 1 comment
-
There's currently no way to do this sadly, but it has been a highly requested feature for some time. I'll push for that with the team. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
❓ Question: How to set base path for static assets in react-email preview?
Hi team 👋
I'm using react-email and running the previewer at the following URL:
https://mydomain.com/react-preview
However, the app tries to load chunks from:
https://mydomain.com/_next/static/...
Instead of:
https://mydomain.com/react-preview/_next/static/...
This causes all static files (JS chunks, CSS, etc.) to fail to load due to incorrect paths.
🧩 Question:
Is there a way to configure a base path or asset prefix so that all static files are loaded relative to /react-preview instead of the root?
I haven't found a config option or environment variable in the docs for this use case.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions