37 lines
893 B
JavaScript
37 lines
893 B
JavaScript
const { createProxyMiddleware } = require("http-proxy-middleware");
|
|
|
|
module.exports = {
|
|
siteMetadata: {
|
|
title: "Skynet Account",
|
|
siteUrl: `https://account.${process.env.GATSBY_PORTAL_DOMAIN}/`,
|
|
},
|
|
trailingSlash: "never",
|
|
plugins: [
|
|
"gatsby-plugin-image",
|
|
"gatsby-plugin-provide-react",
|
|
"gatsby-plugin-react-helmet",
|
|
"gatsby-plugin-sharp",
|
|
"gatsby-transformer-sharp",
|
|
"gatsby-plugin-styled-components",
|
|
"gatsby-plugin-postcss",
|
|
{
|
|
resolve: "gatsby-source-filesystem",
|
|
options: {
|
|
name: "images",
|
|
path: "./src/images/",
|
|
},
|
|
__key: "images",
|
|
},
|
|
],
|
|
developMiddleware: (app) => {
|
|
app.use(
|
|
"/api/",
|
|
createProxyMiddleware({
|
|
target: "https://account.skynetpro.net",
|
|
secure: false, // Do not reject self-signed certificates.
|
|
changeOrigin: true,
|
|
})
|
|
);
|
|
},
|
|
};
|