fix: windows compatibility

This commit is contained in:
veganbeef
2025-05-08 10:49:15 -07:00
parent eda896e478
commit f3f8924fa9
5 changed files with 44 additions and 14 deletions

View File

@@ -388,7 +388,12 @@ async function main() {
// Run next build
console.log('\nBuilding Next.js application...');
execSync('next build', { cwd: projectRoot, stdio: 'inherit' });
const nextBin = path.normalize(path.join(projectRoot, 'node_modules', '.bin', 'next'));
execSync(`"${nextBin}" build`, {
cwd: projectRoot,
stdio: 'inherit',
shell: process.platform === 'win32'
});
console.log('\n✨ Build complete! Your frame is ready for deployment. 🪐');
console.log('📝 Make sure to configure the environment variables from .env in your hosting provider');