diff --git a/README.md b/README.md index feaaf22..1bcf96a 100644 --- a/README.md +++ b/README.md @@ -72,9 +72,9 @@ adapter({ // These modules will be fetched when the application is deployed dependencies: [], - // Set the Node.js version for the App Engine runtime (default: `16`) + // Set the Node.js version for the App Engine runtime (default: `18`) // See available runtimes: https://cloud.google.com/appengine/docs/standard/nodejs/runtime - nodejsRuntime: 16, + nodejsRuntime: 18, }); ``` diff --git a/index.d.ts b/index.d.ts index 6c5ed70..c35e4fa 100644 --- a/index.d.ts +++ b/index.d.ts @@ -19,7 +19,7 @@ type AdapterOptions = { /** Dependencies to be added in package.json */ dependencies?: Record; /** - * Nodejs version to target, defaults to 16 + * Nodejs version to target, defaults to 18 * Available runtimes can be seen here: * https://cloud.google.com/appengine/docs/standard/nodejs/runtime */ diff --git a/index.js b/index.js index 50cec47..792a571 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ const files = fileURLToPath(new URL('files', import.meta.url)); /** @type {import('.').default} **/ export default function entrypoint(options = {}) { - const {out = 'build', external = [], useCloudLogging = false, useCloudTracing = false, dependencies = {}, nodejsRuntime = 16} = options; + const {out = 'build', external = [], useCloudLogging = false, useCloudTracing = false, dependencies = {}, nodejsRuntime = 18} = options; return { name: 'svelte-adapter-appengine', diff --git a/tests/expected_app.yaml b/tests/expected_app.yaml index 77039fa..1e51e55 100644 --- a/tests/expected_app.yaml +++ b/tests/expected_app.yaml @@ -40,6 +40,6 @@ handlers: - url: /.* secure: always script: auto -runtime: nodejs16 +runtime: nodejs18 entrypoint: node index.js default_expiration: 0h