fix: serve coolify build without vite host guard
This commit is contained in:
@@ -2,12 +2,13 @@ import { describe, expect, it } from 'vitest';
|
||||
import { readFileSync } from 'node:fs';
|
||||
|
||||
describe('Coolify and Nixpacks deployment config', () => {
|
||||
it('defines a production start script that binds to all interfaces and PORT', () => {
|
||||
it('defines a production start script that serves dist without Vite host blocking', () => {
|
||||
const packageJson = JSON.parse(readFileSync('package.json', 'utf8'));
|
||||
|
||||
expect(packageJson.scripts.start).toContain('astro preview');
|
||||
expect(packageJson.scripts.start).toContain('sirv dist');
|
||||
expect(packageJson.scripts.start).toContain('--host 0.0.0.0');
|
||||
expect(packageJson.scripts.start).toContain('${PORT:-4321}');
|
||||
expect(packageJson.scripts.start).not.toContain('astro preview');
|
||||
});
|
||||
|
||||
it('pins Nixpacks install, build, and start commands for Coolify', () => {
|
||||
|
||||
Reference in New Issue
Block a user