diff --git a/README.md b/README.md index 9aebae3..aadf43a 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/index.js b/index.js index 866d7b3..a2cf94a 100644 --- a/index.js +++ b/index.js @@ -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), }));