diff --git a/package.json b/package.json index 2fb5db5..ea6f816 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ ], "scripts": { "prepack": "nuxt-module-build prepare && nuxt-module-build build", - "dev": "nuxi dev playground", + "dev": "nuxi dev playground --port 5252", "dev:build": "nuxi build playground", "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground", "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags", diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts index 33f52a9..b75f6a0 100644 --- a/playground/nuxt.config.ts +++ b/playground/nuxt.config.ts @@ -1,5 +1,10 @@ +const DEV_PORT = 5252 + export default defineNuxtConfig({ devtools: { enabled: true }, + devServer: { + port: Number(process.env.PORT) && DEV_PORT, + }, modules: ['@nuxt/ui', 'nuxt-request-timeline'], requestTimeline: {},