2022-02-28 15:39:50 +00:00
|
|
|
const { createProxyMiddleware } = require("http-proxy-middleware");
|
|
|
|
|
2022-02-15 09:04:19 +00:00
|
|
|
module.exports = {
|
|
|
|
siteMetadata: {
|
2022-02-17 11:16:21 +00:00
|
|
|
title: `Accounts Dashboard`,
|
|
|
|
siteUrl: `https://www.yourdomain.tld`,
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
2022-02-18 08:17:28 +00:00
|
|
|
"gatsby-plugin-image",
|
2022-02-21 08:30:39 +00:00
|
|
|
"gatsby-plugin-provide-react",
|
2022-02-18 08:17:28 +00:00
|
|
|
"gatsby-plugin-react-helmet",
|
|
|
|
"gatsby-plugin-sharp",
|
|
|
|
"gatsby-transformer-sharp",
|
2022-02-23 11:14:06 +00:00
|
|
|
"gatsby-plugin-styled-components",
|
2022-02-18 08:17:28 +00:00
|
|
|
"gatsby-plugin-postcss",
|
2022-02-17 11:16:21 +00:00
|
|
|
{
|
2022-02-18 08:17:28 +00:00
|
|
|
resolve: "gatsby-source-filesystem",
|
2022-02-15 09:04:19 +00:00
|
|
|
options: {
|
2022-02-18 08:17:28 +00:00
|
|
|
name: "images",
|
|
|
|
path: "./src/images/",
|
2022-02-15 09:04:19 +00:00
|
|
|
},
|
2022-02-18 08:17:28 +00:00
|
|
|
__key: "images",
|
2022-02-17 11:16:21 +00:00
|
|
|
},
|
|
|
|
],
|
2022-02-28 15:39:50 +00:00
|
|
|
developMiddleware: (app) => {
|
|
|
|
app.use(
|
|
|
|
"/api/",
|
|
|
|
createProxyMiddleware({
|
2022-03-23 13:32:35 +00:00
|
|
|
target: "https://account.skynetpro.net",
|
2022-02-28 15:39:50 +00:00
|
|
|
secure: false, // Do not reject self-signed certificates.
|
|
|
|
changeOrigin: true,
|
|
|
|
})
|
|
|
|
);
|
|
|
|
},
|
2022-02-18 08:17:28 +00:00
|
|
|
};
|