Skip to content

adapter-node: ReferenceError: BASE_ENV is not defined #3424

@lovasoa

Description

@lovasoa

Describe the bug

Compiling a project with adapter-node fails with ReferenceError: BASE_ENV is not defined

Reproduction

Compile a project with adapter-static

https://github.com/lovasoa/sanipasse/tree/update-svelte

Logs

file:///workspaces/sanipasse/build/handler-4b919981.js:740
const base = BASE_ENV && process.env[BASE_ENV];
             ^

ReferenceError: BASE_ENV is not defined
    at file:///workspaces/sanipasse/build/handler-4b919981.js:740:14
    at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
    at async loadESM (node:internal/process/esm_loader:88:5)
    at async handleMainPromise (node:internal/modules/run_main:65:12)

System Info

latest

Severity

blocking all usage of SvelteKit

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions