This file contains hidden or 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
| ... | |
| "scripts": { | |
| ... | |
| "generate-sitemap": "node sitemap-generator.js", | |
| ... | |
| }, | |
| ... |
This file contains hidden or 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
| import Head from 'next/head'; | |
| const Index = (): JSX.Element => { | |
| return ( | |
| <> | |
| <Head> | |
| <title>My Page title</title> | |
| <meta property="og:title" content="My page title" key="title" /> | |
| </Head> | |
| <h1>My page title</h1> |
This file contains hidden or 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
| import Head from 'next/head'; | |
| const Index = (): JSX.Element => { | |
| return ( | |
| <> | |
| <Head> | |
| <title>My Page title</title> | |
| <meta property="og:title" content="My page title" key="title" /> | |
| <meta name="description" content="My description" /> | |
| <meta property="og:description" content="My description" /> |
This file contains hidden or 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
| module goldstack.party/templates/lambda-go-gin | |
| go 1.16 | |
| require ( | |
| github.com/aws/aws-lambda-go v1.23.0 | |
| github.com/awslabs/aws-lambda-go-api-proxy v0.9.0 | |
| github.com/gin-contrib/cors v1.3.1 | |
| github.com/gin-gonic/gin v1.6.3 | |
| ) |
This file contains hidden or 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
| package main | |
| import ( | |
| "os" | |
| "github.com/aws/aws-lambda-go/lambda" | |
| ) | |
| func main() { | |
| // when no 'PORT' environment variable defined, process lambda |
This file contains hidden or 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
| package main | |
| import ( | |
| "os" | |
| "github.com/gin-contrib/cors" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| func CreateServer() *gin.Engine { |
This file contains hidden or 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
| { | |
| "$schema": "./schemas/package.schema.json", | |
| "name": "lambda-go-gin", | |
| "template": "lambda-go-gin", | |
| "templateVersion": "0.1.1", | |
| "configuration": {}, | |
| "deployments": [ | |
| { | |
| "name": "dev", | |
| "configuration": { |
This file contains hidden or 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
| { | |
| "users": [ | |
| { | |
| "name": "awsUser", | |
| "type": "apiKey", | |
| "config": { | |
| "awsAccessKeyId": "[Access Key Id]", | |
| "awsSecretAccessKey": "[Secret Access Key]", | |
| "awsDefaultRegion": "us-west-2" | |
| } |
This file contains hidden or 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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "composite": true, | |
| "declaration": true, | |
| "declarationMap": true, | |
| "incremental": true, | |
| "outDir": "./dist", | |
| } | |
| "references": [ | |
| { |
This file contains hidden or 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
| { | |
| "editor.codeActionsOnSave": { | |
| "source.fixAll.eslint": true | |
| }, | |
| "files.eol": "\n", | |
| "editor.formatOnSave": false | |
| } |