Deploy in context-path instead of / #1758

Closed
opened 2026-03-22 13:34:59 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @eLvErDe on GitHub (Feb 21, 2022).

Hello,

I need to deploy Vikunja frontend in /vikunja context and I failed to make it work.
It seems the plugin used should support it: https://github.com/antfu/vite-plugin-pwa/issues/4 so I tried adding base: '/vikunja' in both build section and plugins.VitePWA but after building the resulting index.html always references assets with absolute path on /.

Any idea ?

Regards.

Originally created by @eLvErDe on GitHub (Feb 21, 2022). Hello, I need to deploy Vikunja frontend in /vikunja context and I failed to make it work. It seems the plugin used should support it: https://github.com/antfu/vite-plugin-pwa/issues/4 so I tried adding `base: '/vikunja'` in both `build` section and `plugins.VitePWA` but after building the resulting index.html always references assets with absolute path on /. Any idea ? Regards.
Author
Owner

@kolaente commented on GitHub (Feb 21, 2022):

The base path is configurable in vite's config. To use it, you'll need to modify the build command in the package.json to include the path, then rebuild.

Closing as resolved, please ping if you have other issues.

@kolaente commented on GitHub (Feb 21, 2022): The base path [is configurable](https://vitejs.dev/guide/build.html#public-base-path) in vite's config. To use it, you'll need to modify the `build` command in the `package.json` to include the path, then rebuild. Closing as resolved, please ping if you have other issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#1758