@fluid-app/fluid-cli-portal 0.1.47 → 0.1.48
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.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/dist/{portal-dev-plugin-DBoPIt_V.mjs → portal-dev-plugin-CytSDvBy.mjs} +61 -7
- package/dist/portal-dev-plugin-CytSDvBy.mjs.map +1 -0
- package/dist/vite-plugin.d.mts +12 -0
- package/dist/vite-plugin.d.mts.map +1 -1
- package/dist/vite-plugin.mjs +1 -1
- package/package.json +3 -3
- package/templates/starter/.env.example +5 -1
- package/templates/starter/README.md.template +1 -1
- package/dist/portal-dev-plugin-DBoPIt_V.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1202,25 +1202,19 @@ const devCommand = new Command("dev").description("Start the development server
|
|
|
1202
1202
|
const viteArgs = ["vite"];
|
|
1203
1203
|
if (options.port) viteArgs.push("--port", String(options.port));
|
|
1204
1204
|
if (options.host) viteArgs.push("--host");
|
|
1205
|
-
const apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL ?? "https://api.fluid.app";
|
|
1206
1205
|
const parsedPort = Number(options.port);
|
|
1207
1206
|
const port = Number.isFinite(parsedPort) ? parsedPort : 5173;
|
|
1208
1207
|
try {
|
|
1209
1208
|
const { createServer } = await import("vite");
|
|
1210
|
-
const { portalDevPlugin } = await import("./portal-dev-plugin-
|
|
1209
|
+
const { portalDevPlugin } = await import("./portal-dev-plugin-CytSDvBy.mjs").then((n) => n.n);
|
|
1211
1210
|
const { backendDevPlugin } = await import("./backend-dev-plugin-B9-S4Is-.mjs").then((n) => n.n);
|
|
1212
1211
|
const server = await createServer({
|
|
1213
1212
|
configFile: viteConfigPath,
|
|
1214
|
-
root: cwd,
|
|
1215
1213
|
envPrefix: ["VITE_", "NEXT_PUBLIC_"],
|
|
1216
1214
|
plugins: [portalDevPlugin(), backendDevPlugin()],
|
|
1217
1215
|
server: {
|
|
1218
1216
|
port,
|
|
1219
|
-
host: options.host ? true : void 0
|
|
1220
|
-
proxy: { "/api": {
|
|
1221
|
-
target: apiBaseUrl,
|
|
1222
|
-
changeOrigin: true
|
|
1223
|
-
} }
|
|
1217
|
+
host: options.host ? true : void 0
|
|
1224
1218
|
}
|
|
1225
1219
|
});
|
|
1226
1220
|
await server.listen();
|