mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
feat: allow setting 'base' via VITE_BASE_URL
this sets the default to `/` which results in this patch not breaking behavior. This is being used to set base as a relative path to enable hosting movie-web at any non-root location
This commit is contained in:
parent
27aff99969
commit
de2e3e6aed
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ const captioningPackages = [
|
||||||
export default defineConfig(({ mode }) => {
|
export default defineConfig(({ mode }) => {
|
||||||
const env = loadEnv(mode, process.cwd());
|
const env = loadEnv(mode, process.cwd());
|
||||||
return {
|
return {
|
||||||
|
base: env.VITE_BASE_URL || '/',
|
||||||
plugins: [
|
plugins: [
|
||||||
million.vite({ auto: true, mute: true }),
|
million.vite({ auto: true, mute: true }),
|
||||||
handlebars({
|
handlebars({
|
||||||
|
|
Loading…
Reference in a new issue