diff --git a/.drone.yml b/.drone.yml index 1233aadb9..d529486d3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -458,8 +458,6 @@ steps: commands: - cd frontend - cp -r dist-test dist-preview - # Override the default api url used for preview - - sed -i 's|http://localhost:3456|https://try.vikunja.io|g' dist-preview/index.html # create via: # `shasum -a 384 ./scripts/deploy-preview-netlify.mjs > ./scripts/deploy-preview-netlify.mjs.sha384` - shasum -a 384 -c ./scripts/deploy-preview-netlify.mjs.sha384 @@ -961,7 +959,6 @@ steps: - pnpm install --fetch-timeout 100000 --frozen-lockfile - pnpm run lint - pnpm run build - - sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing - name: static image: kolaente/zip @@ -1020,7 +1017,6 @@ steps: - npm install -g corepack && corepack enable && pnpm config set store-dir .cache/pnpm - pnpm install --fetch-timeout 100000 --frozen-lockfile - pnpm run build - - sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing - name: static image: kolaente/zip diff --git a/frontend/netlify.toml b/frontend/netlify.toml index afa6154f0..7e3938edd 100644 --- a/frontend/netlify.toml +++ b/frontend/netlify.toml @@ -2,6 +2,11 @@ command = "pnpm run build" publish = "dist-preview" +[[redirects]] + from = "/api" + to = "/api" + status = 200 + [[redirects]] from = "/*" to = "/index.html"