@tangle-network/create-agent-app 0.60.147 → 0.60.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -4,7 +4,8 @@ import tailwindcss from '@tailwindcss/postcss'
|
|
|
4
4
|
|
|
5
5
|
export default defineConfig({
|
|
6
6
|
root: 'web',
|
|
7
|
-
|
|
7
|
+
// web/public is copied as-is to dist/client; it holds _headers (cache rules).
|
|
8
|
+
publicDir: 'public',
|
|
8
9
|
plugins: [react()],
|
|
9
10
|
css: { postcss: { plugins: [tailwindcss()] } },
|
|
10
11
|
build: { outDir: '../dist/client', emptyOutDir: true },
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Workers Static Assets reads this file from the assets root (dist/client).
|
|
2
|
+
# Vite names every bundle under /assets/ by its content hash, so a changed file
|
|
3
|
+
# gets a new URL: browsers may keep these forever without asking again.
|
|
4
|
+
# index.html is not listed, so a deploy is picked up on the next load.
|
|
5
|
+
/assets/*
|
|
6
|
+
Cache-Control: public, max-age=31536000, immutable
|