Skip to content
Merged
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
4 changes: 4 additions & 0 deletions src/lib/run-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ async function runDev (runOptions, config, _inprocHookRunner) {
process.env.__OW_API_KEY = process.env.AIO_RUNTIME_AUTH
process.env.__OW_NAMESPACE = process.env.AIO_RUNTIME_NAMESPACE
process.env.__OW_API_HOST = process.env.AIO_RUNTIME_APIHOST
// set up environment variables for aio
// this can be read as truthy, it will not exist in Runtime
// ex. console.log('AIO_DEV ', process.env.AIO_DEV ? 'dev' : 'prod')
process.env.AIO_DEV = 'true'
Copy link

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider checking if process.env.AIO_DEV is already set before overwriting it. This helps preserve any external overrides and makes the intent of the flag clearer.

Suggested change
process.env.AIO_DEV = 'true'
if (process.env.AIO_DEV === undefined) {
process.env.AIO_DEV = 'true'
}

Copilot uses AI. Check for mistakes.

const serverPortToUse = parseInt(process.env.PORT) || SERVER_DEFAULT_PORT
const serverPort = await getPort({ port: serverPortToUse })
Expand Down