@rsc-kit/core 0.13.0 → 0.13.1
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/vite.js +10 -1
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
package/dist/vite.js
CHANGED
|
@@ -3722,7 +3722,16 @@ export function rscKit(options = {}) {
|
|
|
3722
3722
|
// routing bug rather than as this line. In dev the pages are the root;
|
|
3723
3723
|
// the assets come from the same origin either way.
|
|
3724
3724
|
base: '/',
|
|
3725
|
-
|
|
3725
|
+
// Where the generated entries live, so Vite resolves them as its own
|
|
3726
|
+
// source. A build concern only.
|
|
3727
|
+
//
|
|
3728
|
+
// Not during preview. `vite preview` serves what was built, and Nitro's
|
|
3729
|
+
// preview reads its build info from `<vite root>/node_modules/.nitro` —
|
|
3730
|
+
// so pointing the root at this directory sent it looking somewhere no
|
|
3731
|
+
// build ever writes, and every preview failed with "Cannot load nitro
|
|
3732
|
+
// build info. Make sure to build first." after a build that had just
|
|
3733
|
+
// succeeded.
|
|
3734
|
+
...(env.isPreview ? {} : { root: outDir }),
|
|
3726
3735
|
// Force single instances of React/RSC runtime — critical when the
|
|
3727
3736
|
// package is symlinked (local dev / monorepo), else "use client"
|
|
3728
3737
|
// components SSR against a second React copy and hooks throw.
|