fix(doc): Update Subdirectory Documentation #1363
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "eljef/api:subpath_update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
requirement of a trailing slash.
Signed-off-by: Jef Oliver jef@eljef.me
Requires vikunja/frontend#2964
WIP until other is merged.
Considering https://kolaente.dev/vikunja/frontend/pulls/2964/files wouldn't it be easier to do this now:
Or even better describe how to set the env variable via a
.env.local
file that gets filled out before the build withBASE_URL=/SUBPATH/
. That way onlypnpm run build
would be needed if other changes are done and the env file saves the changes for the next time.EDIT
Maybe we can wait for https://kolaente.dev/vikunja/frontend/pulls/2972/files to be merged, then the variable can be listed there as well as an example.
process.env.BASE_URL
does not setimport.meta.env.BASE_URL
. This is actually set in the inverse.import.meta.env.BASE_URL
setsprocess.env.BASE_URL
in the environment. So the--base=/SUBPATH/
argument is needed.I'm assuming that we add the
base
option of the config (not the command line flag) to our vite config that hasprocess.env.BASE_URL
as value.Some related stuff I found in the docs:
(see: https://vitejs.dev/guide/build.html#public-base-path)
and
(see https://vitejs.dev/guide/env-and-mode.html#env-variables)
and
vikunja/frontend#2964 is updated accordingly. This documentation update is still needed to clarify the need for a trailing slash. Pending the approval of the front-end PR.
b81d4e8504
todabe14b9fb
Awesome! Can you remove the
pnpm workbox copyLibraries dist/
line and replacepnpm vite build
withpnpm run build
. Because the build task already contains both commands. This way the person setting up the subpaths has nothing to do with workbox.dabe14b9fb
to64b00e0587
Done and dusted
WIP: fix(doc): Update Subdirectory Documentationto fix(doc): Update Subdirectory Documentation64b00e0587
toe2dfcd17de
e2dfcd17de
to0ad2e2dc7d
0ad2e2dc7d
tod79e9a2de7
d79e9a2de7
to6374c0dc8b
6374c0dc8b
to1e8409664c
1e8409664c
to1f61e82526
1f61e82526
to8c3b470332
8c3b470332
to6383690003