Skip to content

Commit

Permalink
feat: change default port to 6006
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Aug 10, 2022
1 parent c728cdd commit 54241e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"story:preview": "histoire preview --port 4567",
"ci": "start-server-and-test story:preview http://localhost:4567/ test",
"test": "cypress run",
"test:dev": "cypress open --config baseUrl=http://localhost:3000",
"test:dev": "cypress open --config baseUrl=http://localhost:6006",
"test:examples": "pnpm run story:build && pnpm run ci"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/histoire/src/node/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function devCommand (options: DevOptions) {
const ctx = await createContext({
mode: 'dev',
})
const { server, close } = await createServer(ctx, options.port)
const { server, close } = await createServer(ctx, options.port ?? 6006)
server.printUrls()

// Histoire config watcher
Expand Down
2 changes: 1 addition & 1 deletion packages/histoire/src/node/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function startPreview (viteConfig: ViteConfig, port: number | null,
}),
)

let finalPort = port ?? 3000
let finalPort = port ?? 6006

const httpServer = http.createServer(app)

Expand Down

0 comments on commit 54241e3

Please sign in to comment.