Skip to content

Commit

Permalink
fix(aws-amplify): register and auto detect
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 16, 2023
1 parent 963716d commit 0f38eb6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Temporary Items
.env
.netlify
.vercel
.amplify-hosting
staticwebapp.config.json
.eslintcache
playground/firebase.json
Expand Down
3 changes: 1 addition & 2 deletions src/presets/aws-amplify.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { fileURLToPath } from "node:url";
import { resolve } from "node:path";
import { writeFile } from "node:fs/promises";
import { joinURL } from "ufo";
Expand All @@ -12,7 +11,7 @@ import {

export const awsAmplify = defineNitroPreset({
extends: "node-server",
entry: fileURLToPath(new URL("entry.ts", import.meta.url)),
entry: "#internal/nitro/entries/aws-amplify",
output: {
dir: "{{ rootDir }}/.amplify-hosting",
serverDir: "{{ output.dir }}/compute/default",
Expand Down
1 change: 1 addition & 0 deletions src/presets/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from "./aws-amplify";
export * from "./aws-lambda";
export * from "./azure-functions";
export * from "./azure";
Expand Down
1 change: 1 addition & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function replaceAll(input: string, from: string, to: string) {
const autodetectableProviders: Partial<
Record<ProviderName, KebabCase<keyof typeof _PRESETS>>
> = {
aws_amplify: "aws-amplify",
azure_static: "azure",
cloudflare_pages: "cloudflare-pages",
netlify: "netlify",
Expand Down

0 comments on commit 0f38eb6

Please sign in to comment.