-
Notifications
You must be signed in to change notification settings - Fork 2
Fix/deploy #42
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
base: dev
Are you sure you want to change the base?
Fix/deploy #42
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -37,15 +37,17 @@ jobs: | |||||
| git fetch origin main | ||||||
| git checkout main | ||||||
| echo "Building main branch output..." | ||||||
| pnpm build | ||||||
| pnpm i && pnpm build | ||||||
|
|
||||||
| - name: Build dev branch | ||||||
| run: | | ||||||
| git fetch origin dev | ||||||
| git checkout dev | ||||||
| echo "Building dev branch output..." | ||||||
| pnpm build | ||||||
| touch sites/app/dist/.nojekyll | ||||||
| pnpm i && pnpm build --outDir dist/dev | ||||||
|
||||||
| pnpm i && pnpm build --outDir dist/dev | |
| pnpm i && pnpm build --outDir sites/app/dist/dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
--outDir dist/devflag is being passed topnpm build, but this won't work as expected. The rootpnpm buildscript runspnpm build:viewer && pnpm build:app, which eventually callsvite build. The--outDirflag needs to be passed through to the vite command, not to the pnpm script.You have a few options to fix this:
Without this fix, the dev build will output to the default location (sites/app/dist), not to sites/app/dist/dev.