Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- run: pnpm install --frozen-lockfile

- name: Build vanilla example
run: pnpm -C packages/examples/js-vanilla run build -- --base=/vanilla/
run: pnpm -C packages/examples/js-vanilla run build

- name: Build react example
run: pnpm -C packages/examples/react run build -- --base=/react/
run: pnpm -C packages/examples/react run build

- name: Assemble pages
run: |
Expand Down
5 changes: 3 additions & 2 deletions packages/examples/js-vanilla/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import { fileURLToPath } from 'url';

const __dirname = fileURLToPath(new URL('.', import.meta.url));

export default defineConfig({
export default defineConfig(({ command }) => ({
base: command === 'build' ? '/vanilla/' : '/',
resolve: {
alias: {
'@floormap/core': resolve(__dirname, '../../core/src/index.ts'),
'@floormap/svg': resolve(__dirname, '../../svg/src/index.ts'),
},
},
});
}));
5 changes: 3 additions & 2 deletions packages/examples/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import { fileURLToPath } from 'url';

const __dirname = fileURLToPath(new URL('.', import.meta.url));

export default defineConfig({
export default defineConfig(({ command }) => ({
plugins: [react()],
base: command === 'build' ? '/react/' : '/',
resolve: {
alias: {
'@floormap/core': resolve(__dirname, '../../core/src/index.ts'),
'@floormap/react': resolve(__dirname, '../../adapters/react/src/index.ts'),
},
},
});
}));
3 changes: 0 additions & 3 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
name = "floormap"
compatibility_date = "2026-06-08"

[assets]
directory = "./packages/examples/react/dist"
Loading