vxrn 1.6.17 → 1.6.18
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/dist/exports/build.js +1 -1
- package/dist/exports/build.mjs +1 -1
- package/dist/exports/build.native.js +1 -1
- package/dist/exports/serveStaticAssets.js +1 -1
- package/dist/exports/serveStaticAssets.mjs +1 -1
- package/dist/exports/serveStaticAssets.native.js +1 -1
- package/dist/exports/serveStaticAssets.native.js.map +1 -1
- package/package.json +12 -12
- package/src/exports/build.ts +1 -1
- package/src/exports/serveStaticAssets.ts +1 -1
package/dist/exports/build.js
CHANGED
|
@@ -148,7 +148,7 @@ const disableOptimizationConfig = {
|
|
|
148
148
|
plugins: [excludeAPIAndMiddlewareRoutesPlugin, ...globalThis.__vxrnAddWebPluginsProd],
|
|
149
149
|
define: {
|
|
150
150
|
"process.env.TAMAGUI_IS_SERVER": '"1"',
|
|
151
|
-
"process.env.VITE_ENVIRONMENT": '"
|
|
151
|
+
"process.env.VITE_ENVIRONMENT": '"ssr"',
|
|
152
152
|
...processEnvDefines,
|
|
153
153
|
...webBuildConfig.define
|
|
154
154
|
},
|
package/dist/exports/build.mjs
CHANGED
|
@@ -145,7 +145,7 @@ const disableOptimizationConfig = {
|
|
|
145
145
|
plugins: [excludeAPIAndMiddlewareRoutesPlugin, ...globalThis.__vxrnAddWebPluginsProd],
|
|
146
146
|
define: {
|
|
147
147
|
"process.env.TAMAGUI_IS_SERVER": '"1"',
|
|
148
|
-
"process.env.VITE_ENVIRONMENT": '"
|
|
148
|
+
"process.env.VITE_ENVIRONMENT": '"ssr"',
|
|
149
149
|
...processEnvDefines,
|
|
150
150
|
...webBuildConfig.define
|
|
151
151
|
},
|
|
@@ -151,7 +151,7 @@ var disableOptimizationConfig = {
|
|
|
151
151
|
plugins: [excludeAPIAndMiddlewareRoutesPlugin, ...globalThis.__vxrnAddWebPluginsProd],
|
|
152
152
|
define: {
|
|
153
153
|
"process.env.TAMAGUI_IS_SERVER": '"1"',
|
|
154
|
-
"process.env.VITE_ENVIRONMENT": '"
|
|
154
|
+
"process.env.VITE_ENVIRONMENT": '"ssr"',
|
|
155
155
|
...processEnvDefines,
|
|
156
156
|
...webBuildConfig.define
|
|
157
157
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["serveStatic","hashedAssetRe","serveStaticAssets","param","context","next","didCallNext","response","root","onFound","path","c","test","header"],"sources":["../../src/exports/serveStaticAssets.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAI5B,IAAAC,aAAM,
|
|
1
|
+
{"version":3,"names":["serveStatic","hashedAssetRe","serveStaticAssets","param","context","next","didCallNext","response","root","onFound","path","c","test","header"],"sources":["../../src/exports/serveStaticAssets.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAI5B,IAAAC,aAAM,gCAAgB;AAEtB,eAAsBC,kBAAkBC,KAAA;EACtC;MAAAC,OAAA;MAAAC;IAAA,IAAAF,KAAA;IAAAG,WAAA;IAAAC,QAAA,SAAAP,WAAA;MACAQ,IAAA;MAICC,OAAA,WAAAA,CAAAC,IAAA,EAAAC,CAAA;QACGV,aAAA,CAAcW,IAAA,CAAAF,IAAA,IAAAC,CAAA,CAAAE,MAAA,2DAAAF,CAAA,CAAAE,MAAA;MAElB;IAAmC,EACjC,CAAAT,OAAM;MACNE,WAAU,KAAM,QAAMD,IAAA;IACpB;EAGgE,IAElE,GAAAE,QAAA,IAAAD,WAAA,GACD,OAAEC,QAAS;AACV;AACa,SAGfL,iBAAK","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxrn",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.18",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"@hono/node-server": "^1.19.6",
|
|
67
67
|
"@react-native/dev-middleware": "^0.83.0",
|
|
68
68
|
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
69
|
-
"@vxrn/compiler": "1.6.
|
|
70
|
-
"@vxrn/debug": "1.6.
|
|
71
|
-
"@vxrn/query-string": "1.6.
|
|
72
|
-
"@vxrn/react-native-prebuilt": "1.6.
|
|
73
|
-
"@vxrn/resolve": "1.6.
|
|
74
|
-
"@vxrn/safe-area": "1.6.
|
|
75
|
-
"@vxrn/url-parse": "1.6.
|
|
76
|
-
"@vxrn/utils": "1.6.
|
|
77
|
-
"@vxrn/vendor": "1.6.
|
|
78
|
-
"@vxrn/vite-flow": "1.6.
|
|
79
|
-
"@vxrn/vite-plugin-metro": "1.6.
|
|
69
|
+
"@vxrn/compiler": "1.6.18",
|
|
70
|
+
"@vxrn/debug": "1.6.18",
|
|
71
|
+
"@vxrn/query-string": "1.6.18",
|
|
72
|
+
"@vxrn/react-native-prebuilt": "1.6.18",
|
|
73
|
+
"@vxrn/resolve": "1.6.18",
|
|
74
|
+
"@vxrn/safe-area": "1.6.18",
|
|
75
|
+
"@vxrn/url-parse": "1.6.18",
|
|
76
|
+
"@vxrn/utils": "1.6.18",
|
|
77
|
+
"@vxrn/vendor": "1.6.18",
|
|
78
|
+
"@vxrn/vite-flow": "1.6.18",
|
|
79
|
+
"@vxrn/vite-plugin-metro": "1.6.18",
|
|
80
80
|
"citty": "^0.1.6",
|
|
81
81
|
"dotenv": "^17.2.1",
|
|
82
82
|
"dotenv-expand": "^12.0.2",
|
package/src/exports/build.ts
CHANGED
|
@@ -238,7 +238,7 @@ export const build = async (optionsIn: VXRNOptions, buildArgs: BuildArgs = {}) =
|
|
|
238
238
|
|
|
239
239
|
define: {
|
|
240
240
|
'process.env.TAMAGUI_IS_SERVER': '"1"',
|
|
241
|
-
'process.env.VITE_ENVIRONMENT': '"
|
|
241
|
+
'process.env.VITE_ENVIRONMENT': '"ssr"',
|
|
242
242
|
...processEnvDefines,
|
|
243
243
|
...webBuildConfig.define,
|
|
244
244
|
},
|
|
@@ -2,7 +2,7 @@ import { serveStatic } from '@hono/node-server/serve-static'
|
|
|
2
2
|
import type { Context } from 'hono'
|
|
3
3
|
|
|
4
4
|
// hashed assets can be cached forever, html must revalidate
|
|
5
|
-
const hashedAssetRe = /[
|
|
5
|
+
const hashedAssetRe = /[.-][a-zA-Z0-9_-]{8,}\.\w+$/
|
|
6
6
|
|
|
7
7
|
export async function serveStaticAssets({
|
|
8
8
|
context,
|