Skip to content

NodeApp.render #14625

@wildfiremedia

Description

@wildfiremedia

Astro Info

Astro                    v5.14.6
Vite                     v6.4.0
Node                     v22.20.0
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  @astrojs/node (v9.5.0)
Integrations             none

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

No response

Describe the Bug

I ran a benchmark using wrk on npx astro build && npx astro preview.

Stress testing http://localhost:4321 works fine with no issues.

However, when I append http://localhost:4321/#, an error is logged, likely due to a Node adapter bug.


5:59:48 [ERROR] TypeError: mod.page is not a function
    at NodeApp.render (file:///Users/s/starter/dist/server/chunks/_@astrojs-ssr-adapter_D-0bE0Wa.mjs:3495:55)
    at async file:///Users/s/starter/dist/server/chunks/_@astrojs-ssr-adapter_D-0bE0Wa.mjs:3971:24
15:59:48 [ERROR] TypeError: mod.page is not a function
    at NodeApp.render (file:///Users/s/starter/dist/server/chunks/_@astrojs-ssr-adapter_D-0bE0Wa.mjs:3495:55)
    at async file:///Users/s/starter/dist/server/chunks/_@astrojs-ssr-adapter_D-0bE0Wa.mjs:3971:24
15:59:48 [ERROR] TypeError: mod.page is not a function
    at NodeApp.render (file:///Users/s/starter/dist/server/chunks/_@astrojs-ssr-adapter_D-0bE0Wa.mjs:3495:55)
    at async file:///Users/s/starter/dist/server/chunks/_@astrojs-ssr-adapter_D-0bE0Wa.mjs:3971:24
15:59:48 [ERROR] TypeError: mod.page is not a function
    at NodeApp.render (file:///Users/s/starter/dist/server/chunks/_@astrojs-ssr-adapter_D-0bE0Wa.mjs:3495:55)
    at async file:/

What's the expected result?

Should handle /#.

https://github.com/wildfiremedia/astrossr

NA

Participation

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

Metadata

Metadata

Assignees

Labels

- P2: nice to haveNot breaking anything but nice to have (priority)pkg: nodeRelated to Node adapter (scope)

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions