Spaces:
Running
Running
Commit ·
b7c8381
1
Parent(s): 305b744
test with yaml
Browse files- package-lock.json +66 -1
- package.json +2 -1
- public/_headers +2 -0
- space.yaml +1 -1
- vite.config.js +12 -1
package-lock.json
CHANGED
|
@@ -31,7 +31,8 @@
|
|
| 31 |
"eslint-plugin-react-refresh": "^0.4.7",
|
| 32 |
"postcss": "^8.4.39",
|
| 33 |
"tailwindcss": "^3.4.4",
|
| 34 |
-
"vite": "^5.3.1"
|
|
|
|
| 35 |
}
|
| 36 |
},
|
| 37 |
"node_modules/@alloc/quick-lru": {
|
|
@@ -3007,6 +3008,21 @@
|
|
| 3007 |
"url": "https://github.com/sponsors/rawify"
|
| 3008 |
}
|
| 3009 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3010 |
"node_modules/fs.realpath": {
|
| 3011 |
"version": "1.0.0",
|
| 3012 |
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
|
@@ -3191,6 +3207,13 @@
|
|
| 3191 |
"url": "https://github.com/sponsors/ljharb"
|
| 3192 |
}
|
| 3193 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3194 |
"node_modules/graphemer": {
|
| 3195 |
"version": "1.4.0",
|
| 3196 |
"resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
|
|
@@ -3878,6 +3901,19 @@
|
|
| 3878 |
"node": ">=6"
|
| 3879 |
}
|
| 3880 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3881 |
"node_modules/jsx-ast-utils": {
|
| 3882 |
"version": "3.3.5",
|
| 3883 |
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz",
|
|
@@ -5628,6 +5664,16 @@
|
|
| 5628 |
"url": "https://github.com/sponsors/ljharb"
|
| 5629 |
}
|
| 5630 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5631 |
"node_modules/update-browserslist-db": {
|
| 5632 |
"version": "1.1.0",
|
| 5633 |
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz",
|
|
@@ -5732,6 +5778,25 @@
|
|
| 5732 |
}
|
| 5733 |
}
|
| 5734 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5735 |
"node_modules/which": {
|
| 5736 |
"version": "2.0.2",
|
| 5737 |
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
|
|
|
| 31 |
"eslint-plugin-react-refresh": "^0.4.7",
|
| 32 |
"postcss": "^8.4.39",
|
| 33 |
"tailwindcss": "^3.4.4",
|
| 34 |
+
"vite": "^5.3.1",
|
| 35 |
+
"vite-plugin-static-copy": "^1.0.6"
|
| 36 |
}
|
| 37 |
},
|
| 38 |
"node_modules/@alloc/quick-lru": {
|
|
|
|
| 3008 |
"url": "https://github.com/sponsors/rawify"
|
| 3009 |
}
|
| 3010 |
},
|
| 3011 |
+
"node_modules/fs-extra": {
|
| 3012 |
+
"version": "11.2.0",
|
| 3013 |
+
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz",
|
| 3014 |
+
"integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==",
|
| 3015 |
+
"dev": true,
|
| 3016 |
+
"license": "MIT",
|
| 3017 |
+
"dependencies": {
|
| 3018 |
+
"graceful-fs": "^4.2.0",
|
| 3019 |
+
"jsonfile": "^6.0.1",
|
| 3020 |
+
"universalify": "^2.0.0"
|
| 3021 |
+
},
|
| 3022 |
+
"engines": {
|
| 3023 |
+
"node": ">=14.14"
|
| 3024 |
+
}
|
| 3025 |
+
},
|
| 3026 |
"node_modules/fs.realpath": {
|
| 3027 |
"version": "1.0.0",
|
| 3028 |
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
|
|
|
| 3207 |
"url": "https://github.com/sponsors/ljharb"
|
| 3208 |
}
|
| 3209 |
},
|
| 3210 |
+
"node_modules/graceful-fs": {
|
| 3211 |
+
"version": "4.2.11",
|
| 3212 |
+
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
| 3213 |
+
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
| 3214 |
+
"dev": true,
|
| 3215 |
+
"license": "ISC"
|
| 3216 |
+
},
|
| 3217 |
"node_modules/graphemer": {
|
| 3218 |
"version": "1.4.0",
|
| 3219 |
"resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
|
|
|
|
| 3901 |
"node": ">=6"
|
| 3902 |
}
|
| 3903 |
},
|
| 3904 |
+
"node_modules/jsonfile": {
|
| 3905 |
+
"version": "6.1.0",
|
| 3906 |
+
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
|
| 3907 |
+
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
|
| 3908 |
+
"dev": true,
|
| 3909 |
+
"license": "MIT",
|
| 3910 |
+
"dependencies": {
|
| 3911 |
+
"universalify": "^2.0.0"
|
| 3912 |
+
},
|
| 3913 |
+
"optionalDependencies": {
|
| 3914 |
+
"graceful-fs": "^4.1.6"
|
| 3915 |
+
}
|
| 3916 |
+
},
|
| 3917 |
"node_modules/jsx-ast-utils": {
|
| 3918 |
"version": "3.3.5",
|
| 3919 |
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz",
|
|
|
|
| 5664 |
"url": "https://github.com/sponsors/ljharb"
|
| 5665 |
}
|
| 5666 |
},
|
| 5667 |
+
"node_modules/universalify": {
|
| 5668 |
+
"version": "2.0.1",
|
| 5669 |
+
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
|
| 5670 |
+
"integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
|
| 5671 |
+
"dev": true,
|
| 5672 |
+
"license": "MIT",
|
| 5673 |
+
"engines": {
|
| 5674 |
+
"node": ">= 10.0.0"
|
| 5675 |
+
}
|
| 5676 |
+
},
|
| 5677 |
"node_modules/update-browserslist-db": {
|
| 5678 |
"version": "1.1.0",
|
| 5679 |
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz",
|
|
|
|
| 5778 |
}
|
| 5779 |
}
|
| 5780 |
},
|
| 5781 |
+
"node_modules/vite-plugin-static-copy": {
|
| 5782 |
+
"version": "1.0.6",
|
| 5783 |
+
"resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-1.0.6.tgz",
|
| 5784 |
+
"integrity": "sha512-3uSvsMwDVFZRitqoWHj0t4137Kz7UynnJeq1EZlRW7e25h2068fyIZX4ORCCOAkfp1FklGxJNVJBkBOD+PZIew==",
|
| 5785 |
+
"dev": true,
|
| 5786 |
+
"license": "MIT",
|
| 5787 |
+
"dependencies": {
|
| 5788 |
+
"chokidar": "^3.5.3",
|
| 5789 |
+
"fast-glob": "^3.2.11",
|
| 5790 |
+
"fs-extra": "^11.1.0",
|
| 5791 |
+
"picocolors": "^1.0.0"
|
| 5792 |
+
},
|
| 5793 |
+
"engines": {
|
| 5794 |
+
"node": "^18.0.0 || >=20.0.0"
|
| 5795 |
+
},
|
| 5796 |
+
"peerDependencies": {
|
| 5797 |
+
"vite": "^5.0.0"
|
| 5798 |
+
}
|
| 5799 |
+
},
|
| 5800 |
"node_modules/which": {
|
| 5801 |
"version": "2.0.2",
|
| 5802 |
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
package.json
CHANGED
|
@@ -33,6 +33,7 @@
|
|
| 33 |
"eslint-plugin-react-refresh": "^0.4.7",
|
| 34 |
"postcss": "^8.4.39",
|
| 35 |
"tailwindcss": "^3.4.4",
|
| 36 |
-
"vite": "^5.3.1"
|
|
|
|
| 37 |
}
|
| 38 |
}
|
|
|
|
| 33 |
"eslint-plugin-react-refresh": "^0.4.7",
|
| 34 |
"postcss": "^8.4.39",
|
| 35 |
"tailwindcss": "^3.4.4",
|
| 36 |
+
"vite": "^5.3.1",
|
| 37 |
+
"vite-plugin-static-copy": "^1.0.6"
|
| 38 |
}
|
| 39 |
}
|
public/_headers
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*.js
|
| 2 |
+
Content-Type: application/javascript
|
space.yaml
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
sdk: static
|
| 2 |
-
app_file: dist
|
|
|
|
| 1 |
sdk: static
|
| 2 |
+
app_file: dist/index.html
|
vite.config.js
CHANGED
|
@@ -1,8 +1,19 @@
|
|
| 1 |
import { defineConfig } from 'vite';
|
| 2 |
import react from '@vitejs/plugin-react';
|
|
|
|
| 3 |
|
| 4 |
export default defineConfig({
|
| 5 |
-
plugins: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
build: {
|
| 7 |
outDir: 'dist',
|
| 8 |
rollupOptions: {
|
|
|
|
| 1 |
import { defineConfig } from 'vite';
|
| 2 |
import react from '@vitejs/plugin-react';
|
| 3 |
+
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
| 4 |
|
| 5 |
export default defineConfig({
|
| 6 |
+
plugins: [
|
| 7 |
+
react(),
|
| 8 |
+
viteStaticCopy({
|
| 9 |
+
targets: [
|
| 10 |
+
{
|
| 11 |
+
src: 'public/_headers',
|
| 12 |
+
dest: ''
|
| 13 |
+
}
|
| 14 |
+
]
|
| 15 |
+
})
|
| 16 |
+
],
|
| 17 |
build: {
|
| 18 |
outDir: 'dist',
|
| 19 |
rollupOptions: {
|