@lovable.dev/vite-tanstack-config 2.3.1-rc.0 → 2.3.2-rc.0
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/index.cjs +2 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -380,8 +380,9 @@ function defineConfig(configOrOptions = {}) {
|
|
|
380
380
|
if (nitroMod) {
|
|
381
381
|
const { nitro } = nitroMod;
|
|
382
382
|
const userNitroOpts = typeof options.nitro === "object" && options.nitro ? options.nitro : {};
|
|
383
|
-
const nitroOpts = {
|
|
383
|
+
const nitroOpts = { defaultPreset: "cloudflare-module", ...userNitroOpts };
|
|
384
384
|
if (isSandbox) {
|
|
385
|
+
delete nitroOpts.defaultPreset;
|
|
385
386
|
nitroOpts.preset = "cloudflare-module";
|
|
386
387
|
nitroOpts.output = { dir: "dist", serverDir: "dist/server", publicDir: "dist/client" };
|
|
387
388
|
nitroOpts.cloudflare = { nodeCompat: true, deployConfig: true, ...userNitroOpts.cloudflare };
|
package/dist/index.d.cts
CHANGED
|
@@ -14,9 +14,11 @@ interface LovableViteTanstackOptions {
|
|
|
14
14
|
* / `LOVABLE_SANDBOX`). Users who clone their project and self-deploy
|
|
15
15
|
* on their own infra get a Vite-only build with no Cloudflare-specific
|
|
16
16
|
* bundling.
|
|
17
|
-
* - **`true`**: force-on
|
|
17
|
+
* - **`true`**: force-on, defaulting to the `cloudflare-module` preset via
|
|
18
|
+
* Nitro's `defaultPreset` — zero-config target auto-detection
|
|
19
|
+
* (`NITRO_PRESET`, Vercel/Netlify/Cloudflare Pages) still wins.
|
|
18
20
|
* - **object**: force-on, with these overrides. Set `preset`
|
|
19
|
-
* (e.g. `{ preset: "vercel" }`) to
|
|
21
|
+
* (e.g. `{ preset: "vercel" }`) to hard-pin a target from your own CI.
|
|
20
22
|
* - **`false`**: skip nitro entirely.
|
|
21
23
|
*
|
|
22
24
|
* Inside a Lovable build the preset and output layout are forced to
|
package/dist/index.d.ts
CHANGED
|
@@ -14,9 +14,11 @@ interface LovableViteTanstackOptions {
|
|
|
14
14
|
* / `LOVABLE_SANDBOX`). Users who clone their project and self-deploy
|
|
15
15
|
* on their own infra get a Vite-only build with no Cloudflare-specific
|
|
16
16
|
* bundling.
|
|
17
|
-
* - **`true`**: force-on
|
|
17
|
+
* - **`true`**: force-on, defaulting to the `cloudflare-module` preset via
|
|
18
|
+
* Nitro's `defaultPreset` — zero-config target auto-detection
|
|
19
|
+
* (`NITRO_PRESET`, Vercel/Netlify/Cloudflare Pages) still wins.
|
|
18
20
|
* - **object**: force-on, with these overrides. Set `preset`
|
|
19
|
-
* (e.g. `{ preset: "vercel" }`) to
|
|
21
|
+
* (e.g. `{ preset: "vercel" }`) to hard-pin a target from your own CI.
|
|
20
22
|
* - **`false`**: skip nitro entirely.
|
|
21
23
|
*
|
|
22
24
|
* Inside a Lovable build the preset and output layout are forced to
|
package/dist/index.js
CHANGED
|
@@ -346,8 +346,9 @@ function defineConfig(configOrOptions = {}) {
|
|
|
346
346
|
if (nitroMod) {
|
|
347
347
|
const { nitro } = nitroMod;
|
|
348
348
|
const userNitroOpts = typeof options.nitro === "object" && options.nitro ? options.nitro : {};
|
|
349
|
-
const nitroOpts = {
|
|
349
|
+
const nitroOpts = { defaultPreset: "cloudflare-module", ...userNitroOpts };
|
|
350
350
|
if (isSandbox) {
|
|
351
|
+
delete nitroOpts.defaultPreset;
|
|
351
352
|
nitroOpts.preset = "cloudflare-module";
|
|
352
353
|
nitroOpts.output = { dir: "dist", serverDir: "dist/server", publicDir: "dist/client" };
|
|
353
354
|
nitroOpts.cloudflare = { nodeCompat: true, deployConfig: true, ...userNitroOpts.cloudflare };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovable.dev/vite-tanstack-config",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2-rc.0",
|
|
4
4
|
"description": "Vite config wrapper for Lovable TanStack Start projects",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"vite": ">=5.0.0 <9.0.0",
|
|
36
36
|
"@tailwindcss/vite": ">=4.0.0",
|
|
37
37
|
"vite-tsconfig-paths": ">=6.0.0",
|
|
38
|
-
"nitro": ">=3.0.
|
|
38
|
+
"nitro": ">=3.0.260603-beta",
|
|
39
39
|
"@tanstack/react-start": ">=1.100.0",
|
|
40
40
|
"@vitejs/plugin-react": ">=4.0.0"
|
|
41
41
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"nitro": "3.0.
|
|
48
|
+
"nitro": "3.0.260603-beta",
|
|
49
49
|
"@tanstack/react-start": "^1.162.9",
|
|
50
50
|
"@vitejs/plugin-react": "^4.5.2",
|
|
51
51
|
"@tailwindcss/vite": "^4.2.1",
|