Skip to content

Adapter Static is buggy #10433

@DanielRios549

Description

@DanielRios549

Describe the bug

I have a project with two dynamic nested routes: /[name]/[project]. During development I know what name and project should be, the route should be something like /daniel/portfolio.

I was using SvelteKit beta from Feb 2022 version 1.0.0-next.267, on the sveltekit.config.js I created an array of entries that correspond to all possibilities of [name] and [project]params, so the final array on prerender.entriesis ['*', '/daniel/portfolio'].

The build works flawlessly, generating the /daniel.html and /daniel/portfolio.html like it was supposed to be.

This is with SvelteKit 1.0.0-next.267and adapter static 1.0.0-next.26. Using up-to-date packages, no matter what I do, the build simply does not work, I use the same configuration on svelte.config.js, I use the entries function to get the value of [name] and [project] params, nothing works, the adapter-static says all routes are dynamic, even absolute static ones like test/+page.svelte with only a h1 inside.

How to make this thing work?!

Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-c1arfw?file=svelte.config.js

Logs

No response

System Info

System:
    OS: Linux 5.15 KDE neon 5.26 5.26
    CPU: (12) x64 AMD Ryzen 5 1600 Six-Core Processor
    Memory: 6.45 GB / 15.57 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 16.17.0 - ~/.asdf/installs/nodejs/16.17.0/bin/node
    Yarn: 1.22.19 - ~/.local/bin/yarn
    npm: 8.15.0 - ~/.asdf/plugins/nodejs/shims/npm
    pnpm: 6.14.2 - ~/.local/bin/pnpm
  Browsers:
    Chrome: 114.0.5735.198
  npmPackages:
    @sveltejs/adapter-static: ^2.0.2 => 2.0.2 
    @sveltejs/kit: ^1.22.3 => 1.22.3 
    svelte: ^4.1.1 => 4.1.1 
    vite: ^4.4.7 => 4.4.7

Severity

blocking an upgrade

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