-
Notifications
You must be signed in to change notification settings - Fork 20
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 #29 from JakePartusch/feature/oai-private-s3
feat(experimental): Add support for using a private S3 bucket
- Loading branch information
Showing
21 changed files
with
13,730 additions
and
455 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
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,3 @@ | ||
node_modules/ | ||
.cache/ | ||
public |
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,12 @@ | ||
# Gatsby Example Website for Serverless UI | ||
|
||
This is simple Gatsby website that can be deployed with Serverless UI. We use this website for integration tests in this repository. | ||
|
||
Try it yourself with: | ||
|
||
```shell | ||
npm install -g @serverlessui/cli | ||
npm install | ||
npm run build | ||
sui deploy --dir="public" | ||
``` |
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,25 @@ | ||
module.exports = { | ||
siteMetadata: { | ||
title: "gatsby", | ||
}, | ||
plugins: [ | ||
"gatsby-plugin-image", | ||
"gatsby-plugin-react-helmet", | ||
{ | ||
resolve: "gatsby-plugin-manifest", | ||
options: { | ||
icon: "src/images/icon.png", | ||
}, | ||
}, | ||
"gatsby-plugin-sharp", | ||
"gatsby-transformer-sharp", | ||
{ | ||
resolve: "gatsby-source-filesystem", | ||
options: { | ||
name: "images", | ||
path: "./src/images/", | ||
}, | ||
__key: "images", | ||
}, | ||
], | ||
}; |
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,31 @@ | ||
{ | ||
"name": "private-s3", | ||
"version": "1.0.0", | ||
"private": true, | ||
"description": "gatsby", | ||
"author": "Jake Partusch", | ||
"keywords": [ | ||
"gatsby" | ||
], | ||
"scripts": { | ||
"develop": "gatsby develop", | ||
"start": "gatsby develop", | ||
"build": "gatsby build", | ||
"serve": "gatsby serve", | ||
"clean": "gatsby clean" | ||
}, | ||
"dependencies": { | ||
"gatsby": "^3.0.1", | ||
"gatsby-plugin-image": "^1.0.0", | ||
"gatsby-plugin-manifest": "^3.0.0", | ||
"gatsby-plugin-react-helmet": "^4.0.0", | ||
"gatsby-plugin-sharp": "^3.0.0", | ||
"gatsby-plugin-sitemap": "^3.0.0", | ||
"gatsby-source-filesystem": "^3.0.0", | ||
"gatsby-transformer-sharp": "^3.0.0", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1", | ||
"react-helmet": "^6.1.0" | ||
}, | ||
"devDependencies": {} | ||
} |
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,7 @@ | ||
module.exports = { | ||
domain: "serverlessui.app", | ||
zoneId: "Z10061011Y616GGTRN1OW", | ||
certificateArn: | ||
"arn:aws:acm:us-east-1:857786057494:certificate/be831128-bb68-4fcd-b903-4d112d8fd2cd", | ||
__experimental_privateS3: true, | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,54 @@ | ||
import * as React from "react" | ||
import { Link } from "gatsby" | ||
|
||
// styles | ||
const pageStyles = { | ||
color: "#232129", | ||
padding: "96px", | ||
fontFamily: "-apple-system, Roboto, sans-serif, serif", | ||
} | ||
const headingStyles = { | ||
marginTop: 0, | ||
marginBottom: 64, | ||
maxWidth: 320, | ||
} | ||
|
||
const paragraphStyles = { | ||
marginBottom: 48, | ||
} | ||
const codeStyles = { | ||
color: "#8A6534", | ||
padding: 4, | ||
backgroundColor: "#FFF4DB", | ||
fontSize: "1.25rem", | ||
borderRadius: 4, | ||
} | ||
|
||
// markup | ||
const NotFoundPage = () => { | ||
return ( | ||
<main style={pageStyles}> | ||
<title>Not found</title> | ||
<h1 style={headingStyles}>Page not found</h1> | ||
<p style={paragraphStyles}> | ||
Sorry{" "} | ||
<span role="img" aria-label="Pensive emoji"> | ||
😔 | ||
</span>{" "} | ||
we couldn’t find what you were looking for. | ||
<br /> | ||
{process.env.NODE_ENV === "development" ? ( | ||
<> | ||
<br /> | ||
Try creating a page in <code style={codeStyles}>src/pages/</code>. | ||
<br /> | ||
</> | ||
) : null} | ||
<br /> | ||
<Link to="/">Go home</Link>. | ||
</p> | ||
</main> | ||
) | ||
} | ||
|
||
export default NotFoundPage |
Oops, something went wrong.