Skip to content

Commit

Permalink
feat: Correctly handle index.html paths in app.yaml
Browse files Browse the repository at this point in the history
docs: Fix spelling
  • Loading branch information
Jonas Jongejan committed Oct 20, 2021
1 parent 4acd64a commit 350fc88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# svelte-adapter-appengine

Utilise the [Google Cloud App Engine](https://cloud.google.com/appengine) infrastructure to host SvelteKit content.
Utilize the [Google Cloud App Engine](https://cloud.google.com/appengine) infrastructure to host SvelteKit content.

[![npm](https://img.shields.io/npm/v/svelte-adapter-appengine?color=green)](https://www.npmjs.com/package/svelte-adapter-appengine)

Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export default function (options) {
utils.log.minor("Creating routes for static files"+staticFiles.join(', '));

const staticFilesRoutes = staticFiles.map((f) => ({
url: "/" + f,
// Remove index.html from url
url: "/" + f.replace(/index\.html$/gi, ""),
static_files: join("static", f),
upload: join("static", f),
}));
Expand Down

0 comments on commit 350fc88

Please sign in to comment.