@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 +1 -1
- package/dist/module.mjs +5 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
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