build: port vite port configuration (#12223)
This commit is contained in:
		
							parent
							
								
									0efacdfcf0
								
							
						
					
					
						commit
						3e00b32fae
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -11,6 +11,8 @@ import { execa } from 'execa';
 | 
			
		|||
const _filename = fileURLToPath(import.meta.url);
 | 
			
		||||
const _dirname = dirname(_filename);
 | 
			
		||||
 | 
			
		||||
const vitePort = process.env.VITE_PORT ? ["--strictPort", "--port", process.env.VITE_PORT] : ["--strictPort"];
 | 
			
		||||
 | 
			
		||||
await execa('pnpm', ['clean'], {
 | 
			
		||||
	cwd: _dirname + '/../',
 | 
			
		||||
	stdout: process.stdout,
 | 
			
		||||
| 
						 | 
				
			
			@ -41,7 +43,7 @@ execa('pnpm', ['--filter', 'backend', 'watch'], {
 | 
			
		|||
	stderr: process.stderr,
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
execa('pnpm', ['--filter', 'frontend', 'watch'], {
 | 
			
		||||
execa('pnpm', ['--filter', 'frontend', 'watch', ...vitePort], {
 | 
			
		||||
	cwd: _dirname + '/../',
 | 
			
		||||
	stdout: process.stdout,
 | 
			
		||||
	stderr: process.stderr,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue