@webflow/webflow-cli 1.8.17 → 1.8.19
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/CHANGELOG.md +18 -0
- package/dist/index.js +90 -84
- package/dist/templates/astro/astro.config.mjs.template +38 -0
- package/dist/templates/astro/wrangler.astro.json +6 -0
- package/dist/templates/nextjs/next.config.ts.template +16 -0
- package/dist/templates/nextjs/wrangler.nextjs.json +6 -0
- package/package.json +4 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineConfig } from "astro/config";
|
|
2
|
+
|
|
3
|
+
import cloudflare from "@astrojs/cloudflare";
|
|
4
|
+
|
|
5
|
+
import react from '@astrojs/react';
|
|
6
|
+
|
|
7
|
+
import userConfig from './clouduser.astro.config.mjs';
|
|
8
|
+
|
|
9
|
+
const webflowOverrides = {
|
|
10
|
+
base: "${COSMIC_MOUNT_PATH}",
|
|
11
|
+
output: "server",
|
|
12
|
+
adapter: cloudflare({
|
|
13
|
+
platformProxy: {
|
|
14
|
+
enabled: true
|
|
15
|
+
}
|
|
16
|
+
}),
|
|
17
|
+
|
|
18
|
+
integrations: [react()],
|
|
19
|
+
vite: {
|
|
20
|
+
resolve: {
|
|
21
|
+
// Use react-dom/server.edge instead of react-dom/server.browser for React 19.
|
|
22
|
+
// Without this, MessageChannel from node:worker_threads needs to be polyfilled.
|
|
23
|
+
alias: import.meta.env.PROD ? {
|
|
24
|
+
"react-dom/server": "react-dom/server.edge",
|
|
25
|
+
} : undefined,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
build: {
|
|
30
|
+
assetsPrefix: "${COSMIC_DEPLOY_URL}${COSMIC_MOUNT_PATH}"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// https://astro.build/config
|
|
35
|
+
export default defineConfig({
|
|
36
|
+
...userConfig,
|
|
37
|
+
...webflowOverrides,
|
|
38
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { NextConfig } from "next";
|
|
2
|
+
import userConfig from './clouduser.next.config';
|
|
3
|
+
|
|
4
|
+
const webflowOverrides: NextConfig = {
|
|
5
|
+
basePath: "${COSMIC_MOUNT_PATH}",
|
|
6
|
+
assetPrefix: "${COSMIC_DEPLOY_URL}${COSMIC_MOUNT_PATH}",
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
for (const [key, value] of Object.entries(webflowOverrides)) {
|
|
10
|
+
userConfig[key] = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default userConfig;
|
|
14
|
+
|
|
15
|
+
import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
|
|
16
|
+
initOpenNextCloudflareForDev();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webflow/webflow-cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.19",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"webflow": "./dist/index.js"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@babel/preset-typescript": "^7.27.0",
|
|
26
26
|
"@dotenvx/dotenvx": "^1.44.1",
|
|
27
27
|
"@module-federation/enhanced": "^0.13.1",
|
|
28
|
-
"@webflow/data-types": "0.0.
|
|
28
|
+
"@webflow/data-types": "0.0.7",
|
|
29
29
|
"ajv": "^8.17.1",
|
|
30
30
|
"archiver": "^5.3.1",
|
|
31
31
|
"babel-loader": "^10.0.0",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"fast-glob": "^3.3.3",
|
|
38
38
|
"form-data": "4.0.0",
|
|
39
39
|
"inquirer": "^9.1.4",
|
|
40
|
+
"jsonc-parser": "^3.2.0",
|
|
40
41
|
"md5": "^2.2.1",
|
|
41
42
|
"memfs": "^4.17.0",
|
|
42
43
|
"mime-types": "^2.1.35",
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
"unionfs": "^4.5.4",
|
|
52
53
|
"webflow-api": "^3.1.1",
|
|
53
54
|
"webpack": "^5.99.7",
|
|
55
|
+
"zod": "^3.22.4",
|
|
54
56
|
"webpack-merge": "^6.0.1",
|
|
55
57
|
"webpack-node-externals": "^3.0.0"
|
|
56
58
|
},
|