Skip to content

Commit 0f38eb6

Browse files
committedNov 16, 2023
fix(aws-amplify): register and auto detect
1 parent 963716d commit 0f38eb6

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Temporary Items
6666
.env
6767
.netlify
6868
.vercel
69+
.amplify-hosting
6970
staticwebapp.config.json
7071
.eslintcache
7172
playground/firebase.json

‎src/presets/aws-amplify.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { fileURLToPath } from "node:url";
21
import { resolve } from "node:path";
32
import { writeFile } from "node:fs/promises";
43
import { joinURL } from "ufo";
@@ -12,7 +11,7 @@ import {
1211

1312
export const awsAmplify = defineNitroPreset({
1413
extends: "node-server",
15-
entry: fileURLToPath(new URL("entry.ts", import.meta.url)),
14+
entry: "#internal/nitro/entries/aws-amplify",
1615
output: {
1716
dir: "{{ rootDir }}/.amplify-hosting",
1817
serverDir: "{{ output.dir }}/compute/default",

‎src/presets/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export * from "./aws-amplify";
12
export * from "./aws-lambda";
23
export * from "./azure-functions";
34
export * from "./azure";

‎src/utils/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export function replaceAll(input: string, from: string, to: string) {
103103
const autodetectableProviders: Partial<
104104
Record<ProviderName, KebabCase<keyof typeof _PRESETS>>
105105
> = {
106+
aws_amplify: "aws-amplify",
106107
azure_static: "azure",
107108
cloudflare_pages: "cloudflare-pages",
108109
netlify: "netlify",

0 commit comments

Comments
 (0)
Please sign in to comment.