Skip to content

Unexpected server behaviour using file output #16570

@computer-catt

Description

@computer-catt

Astro Info

Astro                    v6.2.1
Node                     v25.9.0
System                   Linux (x64)
Package Manager          unknown (yay/pacman)
Output                   static
Adapter                  @astrojs/node
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

using these settings

> cat astro.config.mjs 


// @ts-check
import { defineConfig } from 'astro/config';

import node from '@astrojs/node';

// https://astro.build/config
export default defineConfig({
  build: {
    // Example: Generate `page.html` instead of `page/index.html` during build.
    format: 'file'
  },
  adapter: node({
    mode: 'standalone'
  })
});

results in all static pages other than index to be incorrectly served (base project attached)
Archive.zip

reproduction steps

  1. download reproduction project
  2. install dependencies and build
pnpm i
pnpm build
  1. run result
node ./dist/server/entry.mjs
  1. test behavior
    visiting /
    works fine

visiting /server
works fine

visiting /static
doesnt serve the page no matter what

What's the expected result?

static pages served normally

Link to Minimal Reproducible Example

attached earlier

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)pkg: nodeRelated to Node adapter (scope)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions