@nuxtlib/cf-deployment 1.0.3 → 1.0.4

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/README.md CHANGED
@@ -28,6 +28,8 @@ export default defineNuxtConfig({
28
28
  2. In Cloudflare, go to `API Tokens` -> `Create Token` -> choose `Edit Cloudflare Workers`, scope it to your account, create the token, and copy it.
29
29
  ![Get API token](assets/api_token.png)
30
30
 
31
+ 3. Before first deploy, delete any existing DNS record that matches your environment hostnames. Wrangler will try to create those records during deploy and can fail on conflicts.
32
+
31
33
  #### If your domain isn't registered in Clouflare yet
32
34
  Go to Cloudflare, add your domain and point nameservers to Cloudflare. Wait until the zone is `Active`.
33
35
 
@@ -211,10 +213,12 @@ Branch behavior:
211
213
  - Branch names are normalized for env keys: lowercased, non `[a-z0-9_]` characters become `_`.
212
214
  - Duplicate normalized env keys get suffixes (`main`, `main_2`, `main_3`, ...).
213
215
  - Route patterns remove scheme and trailing slash (`https://app.example.com/` -> `app.example.com`).
216
+ - Nuxt build output must stay at `.output`; some modules override output to `dist`, which breaks this deploy flow unless you set it back to `.output`.
214
217
 
215
218
 
216
219
  ## Roadmap
217
220
  - CF Resource binding generation (KV, R2, D1, Queues, Durable Objects)
218
221
  - Domain provisioning
219
222
  - Rollback strategies
220
- - Improvement of internal files modularity and test coverage
223
+ - Improvement of internal files modularity and test coverage
224
+ - Enforcment of output build dir
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0 <5.0.0"
6
6
  },
7
- "version": "1.0.3",
7
+ "version": "1.0.4",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -131,7 +131,6 @@ function getWorkflowHeaderBlock(branches) {
131
131
  return lines.join("\n");
132
132
  }
133
133
  function getBuildStepsBlock(packageManager, nodeVersion) {
134
- const cacheDependencyPath = packageManager === "pnpm" ? "pnpm-lock.yaml" : packageManager === "yarn" ? "yarn.lock" : "package-lock.json";
135
134
  const installCommand = packageManager === "pnpm" ? "pnpm install --frozen-lockfile" : packageManager === "yarn" ? "yarn install --frozen-lockfile" : "npm ci";
136
135
  const buildCommand = packageManager === "pnpm" ? "pnpm run build" : packageManager === "yarn" ? "yarn build" : "npm run build";
137
136
  const lines = [
@@ -139,8 +138,6 @@ function getBuildStepsBlock(packageManager, nodeVersion) {
139
138
  " uses: actions/setup-node@v4",
140
139
  " with:",
141
140
  ` node-version: ${nodeVersion}`,
142
- ` cache: ${packageManager}`,
143
- ` cache-dependency-path: ${cacheDependencyPath}`,
144
141
  ""
145
142
  ];
146
143
  if (packageManager !== "npm") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtlib/cf-deployment",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A Nuxt module for Cloudflare Workers deployment with GitHub Actions integration.",
5
5
  "repository": "https://github.com/nuxtlibv2/cf-deployment",
6
6
  "license": "MIT",