Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when opened from reverse proxy (subdirectory) #239

Closed
yusuf81 opened this issue Sep 18, 2024 · 2 comments
Closed

error when opened from reverse proxy (subdirectory) #239

yusuf81 opened this issue Sep 18, 2024 · 2 comments

Comments

@yusuf81
Copy link

yusuf81 commented Sep 18, 2024

Before the update, I had the configuration (domain.com/MyIP) running fine. But when I upgrade, the web is stuck at "It may take a while for the first time, please wait...". It seemed the js link is lost, (for example, /assets/index-DXtKv2M8.js is absolutely pointed to /, not relatively pointed to /MyIP

@yusuf81
Copy link
Author

yusuf81 commented Sep 19, 2024

ok, I found out how to fix it. edit vite.config.ts:, change base value to base url that you use.

// https://vitejs.dev/config/
export default defineConfig({
  base: '/pwa',

@yusuf81 yusuf81 closed this as completed Sep 19, 2024
@jason5ng32
Copy link
Owner

In fact, I would recommend changing the access path through Nginx rather than directly modifying the settings in the program. This approach will be more flexible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants