-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ASCS-eV/feat/add_sst_deploy
feat(envited.ascs.digital): Add SST for deploy on AWS
- Loading branch information
Showing
11 changed files
with
29,258 additions
and
19,556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ Thumbs.db | |
|
||
# Next.js | ||
.next | ||
.env | ||
.env.dev | ||
.env.staging | ||
.env.production | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PLATFORM='' # Database platform thats being used. Choices are 'node', 'RDS' or 'vercel' | ||
ROLE_TO_ASSUME='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"scripts": { | ||
"build": "next build" | ||
}, | ||
"dependencies": { | ||
"next": "14.0.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { SSTConfig } from 'sst' | ||
|
||
import Envited from './stacks/Envited' | ||
|
||
export default { | ||
config(_input) { | ||
return { | ||
name: 'envitedascsdigital', | ||
region: 'eu-central-1', | ||
role: process.env.ROLE_TO_ASSUME, | ||
} | ||
}, | ||
stacks(app) { | ||
app.stack(Envited) | ||
}, | ||
} satisfies SSTConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
import { NextjsSite, StackContext } from 'sst/constructs' | ||
|
||
export default function Envited({ stack }: StackContext) { | ||
// Create the Next.js site | ||
const site = new NextjsSite(stack, 'envited_ascs_digital', { | ||
path: './', | ||
memorySize: '1024 MB', | ||
timeout: '20 seconds', | ||
environment: {}, | ||
}) | ||
|
||
const metadata = site.getConstructMetadata() | ||
|
||
// Add the site's URL to stack output | ||
stack.addOutputs({ | ||
URL: metadata.data.url, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.