@cedarjs/vite 4.0.0-canary.13865 → 4.0.0-canary.13867

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.
@@ -79,10 +79,11 @@ const postFlightToStudio = (payload, metadata) => {
79
79
  encodedMetadata
80
80
  }
81
81
  });
82
+ const apiUrl = (0, import_project_config.getConfig)().web.apiUrl.replace(/\/$/, "");
82
83
  const options = {
83
84
  hostname: "localhost",
84
85
  port: getStudioPort(),
85
- path: "/.redwood/functions/rsc-flight",
86
+ path: `${apiUrl}/rsc-flight`,
86
87
  method: "POST",
87
88
  headers: {
88
89
  "Content-Type": "application/json",
@@ -1 +1 @@
1
- {"version":3,"file":"rscStudioHandlers.d.ts","sourceRoot":"","sources":["../../src/rsc/rscStudioHandlers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAKtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAyGnD,UAAU,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;IAClE,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,OAAO,CAAA;IACZ,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;CAChC;AAED,eAAO,MAAM,qBAAqB,GAAU,OAAO,iBAAiB,kBA8CnE,CAAA"}
1
+ {"version":3,"file":"rscStudioHandlers.d.ts","sourceRoot":"","sources":["../../src/rsc/rscStudioHandlers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAKtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AA0GnD,UAAU,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;IAClE,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,OAAO,CAAA;IACZ,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;CAChC;AAED,eAAO,MAAM,qBAAqB,GAAU,OAAO,iBAAiB,kBA8CnE,CAAA"}
@@ -46,10 +46,11 @@ const postFlightToStudio = (payload, metadata) => {
46
46
  encodedMetadata
47
47
  }
48
48
  });
49
+ const apiUrl = getConfig().web.apiUrl.replace(/\/$/, "");
49
50
  const options = {
50
51
  hostname: "localhost",
51
52
  port: getStudioPort(),
52
- path: "/.redwood/functions/rsc-flight",
53
+ path: `${apiUrl}/rsc-flight`,
53
54
  method: "POST",
54
55
  headers: {
55
56
  "Content-Type": "application/json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "4.0.0-canary.13865+57f1e8c260",
3
+ "version": "4.0.0-canary.13867+c1d36fdd1c",
4
4
  "description": "Vite configuration package for CedarJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,17 +72,17 @@
72
72
  "@babel/generator": "7.29.1",
73
73
  "@babel/parser": "7.29.2",
74
74
  "@babel/traverse": "7.29.0",
75
- "@cedarjs/api-server": "4.0.0-canary.13865",
76
- "@cedarjs/auth": "4.0.0-canary.13865",
77
- "@cedarjs/babel-config": "4.0.0-canary.13865",
78
- "@cedarjs/context": "4.0.0-canary.13865",
79
- "@cedarjs/cookie-jar": "4.0.0-canary.13865",
80
- "@cedarjs/graphql-server": "4.0.0-canary.13865",
81
- "@cedarjs/internal": "4.0.0-canary.13865",
82
- "@cedarjs/project-config": "4.0.0-canary.13865",
83
- "@cedarjs/server-store": "4.0.0-canary.13865",
84
- "@cedarjs/testing": "4.0.0-canary.13865",
85
- "@cedarjs/web": "4.0.0-canary.13865",
75
+ "@cedarjs/api-server": "4.0.0-canary.13867",
76
+ "@cedarjs/auth": "4.0.0-canary.13867",
77
+ "@cedarjs/babel-config": "4.0.0-canary.13867",
78
+ "@cedarjs/context": "4.0.0-canary.13867",
79
+ "@cedarjs/cookie-jar": "4.0.0-canary.13867",
80
+ "@cedarjs/graphql-server": "4.0.0-canary.13867",
81
+ "@cedarjs/internal": "4.0.0-canary.13867",
82
+ "@cedarjs/project-config": "4.0.0-canary.13867",
83
+ "@cedarjs/server-store": "4.0.0-canary.13867",
84
+ "@cedarjs/testing": "4.0.0-canary.13867",
85
+ "@cedarjs/web": "4.0.0-canary.13867",
86
86
  "@fastify/url-data": "6.0.3",
87
87
  "@swc/core": "1.15.30",
88
88
  "@vitejs/plugin-react": "4.7.0",
@@ -134,5 +134,5 @@
134
134
  "publishConfig": {
135
135
  "access": "public"
136
136
  },
137
- "gitHead": "57f1e8c260ef230a4d43b620d51f610cee65f91f"
137
+ "gitHead": "c1d36fdd1c46872a00bc858ff57c170f6a8bbd88"
138
138
  }