clean routes
This commit is contained in:
@@ -29,7 +29,7 @@ export default defineConfig({
|
||||
|
||||
// Base URL for the website
|
||||
use: {
|
||||
baseURL: process.env.DOCKER_SMOKE ? 'http://localhost:3100' : 'http://localhost:3000',
|
||||
baseURL: 'http://localhost:3000',
|
||||
screenshot: 'only-on-failure',
|
||||
video: 'retain-on-failure',
|
||||
trace: 'retain-on-failure',
|
||||
@@ -45,16 +45,18 @@ export default defineConfig({
|
||||
retries: 0,
|
||||
|
||||
// Web server configuration
|
||||
// - Default: start Next dev server locally
|
||||
// - Docker smoke: website is started via docker-compose, so skip webServer
|
||||
webServer: process.env.DOCKER_SMOKE
|
||||
? undefined
|
||||
: {
|
||||
command: 'npm run dev -w @gridpilot/website',
|
||||
url: 'http://localhost:3000',
|
||||
timeout: 120_000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
// Always start Next dev server locally (works on all architectures)
|
||||
// API calls will be proxied to Docker API at localhost:3101
|
||||
webServer: {
|
||||
command: 'npm run dev -w @gridpilot/website',
|
||||
url: 'http://localhost:3000',
|
||||
timeout: 120_000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
env: {
|
||||
NEXT_PUBLIC_API_BASE_URL: 'http://localhost:3101',
|
||||
API_BASE_URL: 'http://localhost:3101',
|
||||
},
|
||||
},
|
||||
|
||||
// Browser projects
|
||||
projects: [
|
||||
|
||||
Reference in New Issue
Block a user