Skip to content

Commit f15afe6

Browse files
committed
fix(e2e): fix template build scripts for build+serve mode
1 parent ad1266b commit f15afe6

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

integration/templates/astro-hybrid/astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export default defineConfig({
1515
react(),
1616
],
1717
server: {
18-
port: Number(process.env.PORT),
18+
port: process.env.PORT ? Number(process.env.PORT) : undefined,
1919
},
2020
});

integration/templates/astro-hybrid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"astro": "astro",
7-
"build": "astro check && astro build",
7+
"build": "astro build",
88
"dev": "astro dev",
99
"preview": "astro preview --port $PORT",
1010
"start": "astro dev --port $PORT"

integration/templates/astro-node/astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ export default defineConfig({
2222
tailwind(),
2323
],
2424
server: {
25-
port: Number(process.env.PORT),
25+
port: process.env.PORT ? Number(process.env.PORT) : undefined,
2626
},
2727
});

integration/templates/astro-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"scripts": {
66
"astro": "astro",
7-
"build": "astro check && astro build",
7+
"build": "astro build",
88
"dev": "astro dev",
99
"preview": "astro preview --port $PORT",
1010
"start": "astro dev --port $PORT"

integration/templates/react-router-node/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export default defineConfig({
1010
}),
1111
],
1212
server: {
13-
port: Number(process.env.PORT),
13+
port: process.env.PORT ? Number(process.env.PORT) : undefined,
1414
},
1515
});

integration/templates/react-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "tsc && vite build",
7+
"build": "vite build",
88
"dev": "vite --port $PORT --no-open",
99
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1010
"preview": "vite preview --port $PORT --no-open"

integration/templates/vue-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "vue-tsc -b && vite build",
7+
"build": "vite build",
88
"dev": "vite --port $PORT",
99
"preview": "vite preview --port $PORT"
1010
},

0 commit comments

Comments
 (0)