@lenne.tech/cli 1.35.0 → 1.35.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.
|
@@ -220,6 +220,12 @@ const NewCommand = {
|
|
|
220
220
|
dest: `./${projectDir}`,
|
|
221
221
|
projectName: projectDir,
|
|
222
222
|
});
|
|
223
|
+
// The vendor conversion rewrote package.json (dropped
|
|
224
|
+
// @lenne.tech/nuxt-extensions, added @nuxt/kit) AFTER the initial install,
|
|
225
|
+
// leaving pnpm-lock.yaml stale. Resync it — otherwise the first
|
|
226
|
+
// `pnpm install --frozen-lockfile` (CI, Docker build) fails with
|
|
227
|
+
// ERR_PNPM_OUTDATED_LOCKFILE and the project cannot be built/deployed.
|
|
228
|
+
yield toolbox.system.run(`cd "./${projectDir}" && pnpm install --no-frozen-lockfile`);
|
|
223
229
|
vendorSpinner.succeed('Frontend converted to vendor mode (app/core/)');
|
|
224
230
|
}
|
|
225
231
|
catch (err) {
|
package/build/lib/dev-env.js
CHANGED
|
@@ -52,14 +52,14 @@ function buildDevEnv(input) {
|
|
|
52
52
|
internalPort: apiInternalPort,
|
|
53
53
|
},
|
|
54
54
|
app: {
|
|
55
|
-
env: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, baseEnv), sharedKeys), {
|
|
55
|
+
env: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, baseEnv), sharedKeys), {
|
|
56
56
|
// See API note above: pin the dev server to IPv4 so Caddy's
|
|
57
57
|
// `127.0.0.1` upstream is unambiguous.
|
|
58
58
|
HOST: '127.0.0.1', NITRO_HOST: '127.0.0.1' }), (apiUrl ? { API_URL: apiUrl, NUXT_API_URL: apiUrl, NUXT_PUBLIC_API_URL: apiUrl } : {})), (appUrl ? { NUXT_PUBLIC_SITE_URL: appUrl, SITE_URL: appUrl } : {})), {
|
|
59
59
|
// Vite-API-Proxy is OFF by default in lt dev mode — Caddy serves
|
|
60
60
|
// both subdomains under HTTPS with shared cookie domain, so
|
|
61
61
|
// same-origin trickery is no longer required.
|
|
62
|
-
NUXT_PUBLIC_API_PROXY: 'false', NUXT_PUBLIC_STORAGE_PREFIX: identity.slug, PORT: String(appInternalPort) }),
|
|
62
|
+
NUXT_PUBLIC_API_PROXY: 'false', NUXT_PUBLIC_STORAGE_PREFIX: identity.slug, PORT: String(appInternalPort) }), (process.platform === 'darwin' ? { TMPDIR: '/tmp' } : {})),
|
|
63
63
|
internalPort: appInternalPort,
|
|
64
64
|
},
|
|
65
65
|
};
|