#Base url is not respected on netlify

2 messages · Page 1 of 1 (latest)

proven slate
#

I have the following config

export default defineConfig({
    site: "https://choose-tech.com",
    srcDir: ".",
    base: "/javascript-libraries",
    trailingSlash: "always",
    output: "server",
    adapter: netlify(),
})

When running locally, everything works fine but once deployed on netlify, it's broken because it's using / instead of /javascript-libraries. Looking at the generated _redirects.txt:

/                          /.netlify/functions/entry    200
/_image                    /.netlify/functions/entry    200
/api/v1/libraries.json     /.netlify/functions/entry    200
/api/v1/categories.json    /.netlify/functions/entry    200

the base is missing. Do you know why?

If you need to try this out, check out https://github.com/choose-tech/javascript-libraries

GitHub

Contribute to choose-tech/javascript-libraries development by creating an account on GitHub.

lofty warrenBOT
#
Quiet in here?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.