Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions builders/spa.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module.exports = async function spa({ output, cache, environment }) {
process.env.NULLSTACK_ENVIRONMENT_MODE = 'spa';

const dir = process.cwd();
const application = require(`${dir}/.${environment}/server`).default
const application = require(`${dir}/.${environment}/server`).default;
const projectName = application.project.name || 'The app';
const { existsSync, mkdirSync, writeFileSync, copySync, removeSync } = require('fs-extra');
const path = `${dir}/${folder}`;

Expand Down Expand Up @@ -33,7 +34,7 @@ module.exports = async function spa({ output, cache, environment }) {
await copy('/robots.txt')
console.log()

console.log('\x1b[36m%s\x1b[0m', ` ✅️ ${application.project.name} is ready at ${folder}\n`);
console.log('\x1b[36m%s\x1b[0m', ` ✅️ ${projectName} is ready at ${folder}\n`);

if (cache) {
console.log('Storing cache...');
Expand Down
3 changes: 2 additions & 1 deletion builders/ssg.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = async function ssg({ output, cache, environment }) {

const dir = process.cwd();
const application = require(`${dir}/.${environment}/server`).default;
const projectName = application.project.name || 'The app';
const { resolve } = require('path')
const { existsSync, mkdirSync, writeFileSync, copySync, removeSync } = require('fs-extra');

Expand Down Expand Up @@ -101,7 +102,7 @@ module.exports = async function ssg({ output, cache, environment }) {
await createSitemap()
console.log()

console.log('\x1b[36m%s\x1b[0m', ` ✅️ ${application.project.name} is ready at ${folder}\n`);
console.log('\x1b[36m%s\x1b[0m', ` ✅️ ${projectName} is ready at ${folder}\n`);

if (cache) {
console.log('Storing cache...');
Expand Down
3 changes: 2 additions & 1 deletion builders/ssr.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module.exports = async function ssr({ cache }) {
const dir = process.cwd();
const application = require(`${dir}/.production/server`).default;
const projectName = application.project.name || 'The app';

console.log('\x1b[36m%s\x1b[0m', `\n ✅️ ${application.project.name} is ready for production\n`);
console.log('\x1b[36m%s\x1b[0m', `\n ✅️ ${projectName} is ready for production\n`);

if (cache) {
console.log('Storing cache...');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"types": "./types/index.d.ts",
"dependencies": {
"@swc/core": "^1.2.171",
"@swc/core": "1.2.179",
"@babel/parser": "^7.2.2",
"@babel/traverse": "^7.2.2",
"body-parser": "^1.19.0",
Expand Down