{ "$schema": "https://aka.ms/azure/static-web-apps-cli/schema", "configurations": { "parakeet": { "appLocation": "src/", "outputLocation": "dist", "appBuildCommand": "nuxt generate", "run": "yarn dev", "appDevserverUrl": "localhost:3000" } }}
{ "platform": { "apiRuntime": "node:16", "apiDirectory": ".output/server", "apiBuildCommand": "yarn run build", "apiStartCommand": "yarn run nuxt generate && yarn run nuxt start", "outputDirectory": ".output/public" }, "routes": [ { "route": "/index.html", "redirect": "/" }, { "route": "/", "rewrite": "/api/server" } ], "navigationFallback": { "rewrite": "/api/server" }}
module.exports = { apps: [ { name: 'Parakeet', exec_mode: 'cluster', instances: 'max', // Or a number of instances script: './.output/server/index.mjs', args: 'start', node_args: '-r dotenv/config' } ]}
CONSOLE_DEBUG="false"
export const isDev = process.env.NODE_ENV === 'development';export const isConsoleDebug = process.env.CONSOLE_DEBUG ? process.env.CONSOLE_DEBUG === 'true' : undefined;export const isConsole = typeof isConsoleDebug !== 'undefined' ? isConsoleDebug : isDev;
export const logger = isConsole ? console : { info: () => {}, warn: () => {}, error: () => {} };
logger.info('Page:', toJS(page.value));