@cedarjs/vite 8.0.0-canary.3628 → 8.0.0-canary.3629

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.
@@ -40,7 +40,8 @@ const startDevServer = async () => {
40
40
 
41
41
  const devServer = await createServer({
42
42
  configFile,
43
- envFile: false, // env file is handled by plugins in the redwood-vite plugin
43
+ // env file is handled by Cedar's plugins
44
+ envDir: false,
44
45
  optimizeDeps: {
45
46
  // This is the only value that isn't a server option
46
47
  force: forceOptimize,
@@ -13,7 +13,7 @@ const buildWeb = async ({ verbose }) => {
13
13
  }
14
14
  return build({
15
15
  configFile: viteConfig,
16
- envFile: false,
16
+ envDir: false,
17
17
  logLevel: verbose ? "info" : "warn"
18
18
  });
19
19
  };
package/dist/buildApp.js CHANGED
@@ -335,7 +335,7 @@ async function buildCedarApp({
335
335
  }
336
336
  const builder = await createBuilder({
337
337
  configFile: cedarPaths.web.viteConfig,
338
- envFile: false,
338
+ envDir: false,
339
339
  logLevel: verbose ? "info" : "warn",
340
340
  environments,
341
341
  resolve: {
@@ -44,7 +44,7 @@ async function buildRouteHooks(verbose, rwPaths) {
44
44
  // Route hooks are node modules, so the static assets in web/public
45
45
  // must not be copied next to them
46
46
  publicDir: false,
47
- envFile: false,
47
+ envDir: false,
48
48
  logLevel: verbose ? "info" : "error",
49
49
  plugins: [
50
50
  // Turns `$api/` imports into an error in the client environment. It's a
@@ -249,7 +249,7 @@ async function startUnifiedDevServer() {
249
249
  const devServer = await createServer({
250
250
  configFile,
251
251
  // env file is handled by Cedar's plugins
252
- envFile: false,
252
+ envDir: false,
253
253
  optimizeDeps: {
254
254
  // This is the only value that isn't a server option
255
255
  force: forceOptimize
@@ -58,7 +58,7 @@ async function createServer() {
58
58
  }
59
59
  const viteSsrDevServer = await createViteServer({
60
60
  configFile: rwPaths.web.viteConfig,
61
- envFile: false,
61
+ envDir: false,
62
62
  define: {
63
63
  "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
64
64
  },
@@ -150,7 +150,7 @@ async function createServer() {
150
150
  globalThis.__cedarjs__client_references = /* @__PURE__ */ new Set();
151
151
  globalThis.__cedarjs__server_references = /* @__PURE__ */ new Set();
152
152
  const viteRscServer = await createViteServer({
153
- envFile: false,
153
+ envDir: false,
154
154
  define: {
155
155
  "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
156
156
  },
@@ -13,7 +13,7 @@ async function rscBuildClient(clientEntryFiles) {
13
13
  throw new Error("Missing web/src/entry.client");
14
14
  }
15
15
  const clientBuildOutput = await viteBuild({
16
- envFile: false,
16
+ envDir: false,
17
17
  define: {
18
18
  "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
19
19
  },
@@ -17,7 +17,7 @@ async function rscBuildForServer(clientEntryFiles, serverEntryFiles, customModul
17
17
  }
18
18
  const outDir = rwPaths.web.distRsc;
19
19
  const rscServerBuildOutput = await viteBuild({
20
- envFile: false,
20
+ envDir: false,
21
21
  define: {
22
22
  "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
23
23
  },
@@ -20,7 +20,7 @@ async function rscBuildForSsr({
20
20
  throw new Error("No server entry file found inside " + rwPaths.web.src);
21
21
  }
22
22
  const ssrBuildOutput = await viteBuild({
23
- envFile: false,
23
+ envDir: false,
24
24
  define: {
25
25
  "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
26
26
  },
@@ -27,7 +27,7 @@ async function buildForStreamingServer({
27
27
  ssr: true,
28
28
  emptyOutDir: true
29
29
  },
30
- envFile: false,
30
+ envDir: false,
31
31
  define: {
32
32
  "process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
33
33
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "8.0.0-canary.3628",
3
+ "version": "8.0.0-canary.3629",
4
4
  "description": "Vite configuration package for CedarJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,17 +54,17 @@
54
54
  "@babel/preset-typescript": "7.29.7",
55
55
  "@babel/traverse": "7.29.12",
56
56
  "@babel/types": "7.29.11",
57
- "@cedarjs/api": "8.0.0-canary.3628",
58
- "@cedarjs/api-server": "8.0.0-canary.3628",
59
- "@cedarjs/babel-config": "8.0.0-canary.3628",
60
- "@cedarjs/context": "8.0.0-canary.3628",
61
- "@cedarjs/graphql-server": "8.0.0-canary.3628",
62
- "@cedarjs/internal": "8.0.0-canary.3628",
63
- "@cedarjs/jobs": "8.0.0-canary.3628",
64
- "@cedarjs/project-config": "8.0.0-canary.3628",
65
- "@cedarjs/server-store": "8.0.0-canary.3628",
66
- "@cedarjs/structure": "8.0.0-canary.3628",
67
- "@cedarjs/testing": "8.0.0-canary.3628",
57
+ "@cedarjs/api": "8.0.0-canary.3629",
58
+ "@cedarjs/api-server": "8.0.0-canary.3629",
59
+ "@cedarjs/babel-config": "8.0.0-canary.3629",
60
+ "@cedarjs/context": "8.0.0-canary.3629",
61
+ "@cedarjs/graphql-server": "8.0.0-canary.3629",
62
+ "@cedarjs/internal": "8.0.0-canary.3629",
63
+ "@cedarjs/jobs": "8.0.0-canary.3629",
64
+ "@cedarjs/project-config": "8.0.0-canary.3629",
65
+ "@cedarjs/server-store": "8.0.0-canary.3629",
66
+ "@cedarjs/structure": "8.0.0-canary.3629",
67
+ "@cedarjs/testing": "8.0.0-canary.3629",
68
68
  "@swc/core": "1.16.21",
69
69
  "@universal-deploy/store": "0.3.0",
70
70
  "@universal-deploy/vite": "0.2.2",
@@ -95,10 +95,10 @@
95
95
  "yargs-parser": "21.1.1"
96
96
  },
97
97
  "devDependencies": {
98
- "@cedarjs/auth": "8.0.0-canary.3628",
99
- "@cedarjs/framework-tools": "8.0.0-canary.3628",
100
- "@cedarjs/router": "8.0.0-canary.3628",
101
- "@cedarjs/web": "8.0.0-canary.3628",
98
+ "@cedarjs/auth": "8.0.0-canary.3629",
99
+ "@cedarjs/framework-tools": "8.0.0-canary.3629",
100
+ "@cedarjs/router": "8.0.0-canary.3629",
101
+ "@cedarjs/web": "8.0.0-canary.3629",
102
102
  "@dr.pogodin/react-helmet": "2.0.4",
103
103
  "@hyrious/esbuild-plugin-commonjs": "0.2.6",
104
104
  "@jridgewell/trace-mapping": "0.3.31",
@@ -120,9 +120,9 @@
120
120
  "vitest": "5.1.0"
121
121
  },
122
122
  "peerDependencies": {
123
- "@cedarjs/auth": "8.0.0-canary.3628",
124
- "@cedarjs/router": "8.0.0-canary.3628",
125
- "@cedarjs/web": "8.0.0-canary.3628",
123
+ "@cedarjs/auth": "8.0.0-canary.3629",
124
+ "@cedarjs/router": "8.0.0-canary.3629",
125
+ "@cedarjs/web": "8.0.0-canary.3629",
126
126
  "react": "19.3.1",
127
127
  "react-dom": "19.3.1"
128
128
  },