Set up netlify builds (#100)
This commit is contained in:
parent
3c1799dcfd
commit
139c3ed556
4 changed files with 10 additions and 1 deletions
3
packages/playground/.gitignore
vendored
3
packages/playground/.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
/dist
|
||||
/test-results/
|
||||
/playwright-report/
|
||||
/playwright-report/
|
||||
/build
|
|
@ -20,6 +20,11 @@ const port = 8080
|
|||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
root: path.join(playgroundDir, './src'),
|
||||
build: {
|
||||
outDir: '../build',
|
||||
minify: false,
|
||||
emptyOutDir: true,
|
||||
},
|
||||
|
||||
assetsInclude: ['**/*.gltf', '**/*.glb'],
|
||||
server: {
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
],
|
||||
"scripts": {
|
||||
"serve": "vite --config ./devEnv/vite.config.ts",
|
||||
"build:static": "vite --config ./devEnv/vite.config.ts build",
|
||||
"build:preview": "vite --config ./devEnv/vite.config.ts preview",
|
||||
"typecheck": "yarn run build",
|
||||
"test": "playwright test --config=devEnv/playwright.config.ts",
|
||||
"test:ci": "percy exec -- playwright test --reporter=dot --config=devEnv/playwright.config.ts --project=chromium",
|
||||
|
|
1
packages/playground/src/public/_redirects
Normal file
1
packages/playground/src/public/_redirects
Normal file
|
@ -0,0 +1 @@
|
|||
/* /index.html 200
|
Loading…
Reference in a new issue