Skip to content

Commit

Permalink
Fix base URL for GitHub Pages
Browse files Browse the repository at this point in the history
Co-authored-by: Kartik Sharma <[email protected]>
  • Loading branch information
ajeetdsouza and crazystylus committed Sep 29, 2024
1 parent 0bb7dc5 commit 1d1b291
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
with:
cache-directories: ./playground/rust/lox-wasm
- name: Build playground
run: pnpm install && pnpm run build
run: pnpm install && BASE_PATH=/loxcraft pnpm run build
working-directory: playground
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Expand Down
5 changes: 4 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ tasks:
build-playground:
deps:
- setup-playground
cmd: pnpm run build
cmds:
- pnpm run build:wasm
- pnpm install --prefer-frozen-lockfile
- pnpm run build
dir: playground

fmt:
Expand Down
1 change: 1 addition & 0 deletions playground/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const nextConfig = {
basePath: process.env.BASE_PATH ?? "/",
output: "export",
};

Expand Down
Empty file removed playground/out/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "npm run build:wasm && next build",
"build": "next build",
"build:wasm": "cd rust/lox-wasm && wasm-pack build --release --target=web",
"fmt": "prettier --write .",
"lint": "next lint",
Expand Down
18 changes: 9 additions & 9 deletions playground/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d1b291

Please sign in to comment.