@nuxtlib/cf-deployment 1.0.1 → 1.0.2

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/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.1",
7
+ "version": "1.0.2",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -257,6 +257,9 @@ function getHeaderBlock(appName) {
257
257
  name = "${escapeTomlString(appName)}"
258
258
  main = ".output/server/index.mjs"
259
259
  compatibility_date = "${DEFAULT_COMPATIBILITY_DATE}"
260
+
261
+ [assets]
262
+ directory = ".output/public"
260
263
  `.trim();
261
264
  }
262
265
 
@@ -294,6 +297,8 @@ const module$1 = defineNuxtModule({
294
297
  // We need this so deploy settings stay in sync with app config every time setup runs.
295
298
  async setup(options, nuxt) {
296
299
  const logger = useLogger("@nuxtlib/cf-deployment");
300
+ nuxt.options.nitro ||= {};
301
+ nuxt.options.nitro.preset ||= "cloudflare_module";
297
302
  const wranglerPath = resolve(nuxt.options.rootDir, "wrangler.toml");
298
303
  const workflowPath = resolve(nuxt.options.rootDir, DEFAULT_WORKFLOW_PATH);
299
304
  const wranglerContent = renderWranglerToml(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtlib/cf-deployment",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
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",