git.iko.soy/rowtype-yoga/psfp
on fd4a42d help sign in
rowtype-yoga/psfp/blog/gatsby-config.js
74 lines 1.9 kB history raw
1const path = require("path");
2var proxy = require("http-proxy-middleware");
4module.exports = {
5 siteMetadata: {
6 title: "Rowtype Yoga",
7 description: "Rowtype Yoga",
8 author: "Mark Eibes",
9 menuLinks: [{ name: "home", link: "/" }]
10 },
11 developMiddleware: app => {
12 app.use(
13 "/api",
14 proxy({
15 target: "http://127.0.0.1:14188",
16 pathRewrite: {
17 "/api": ""
18 }
19 })
20 );
21 },
22 plugins: [
23 "gatsby-plugin-purescript",
24 { resolve: "gatsby-plugin-react-svg" },
25 {
26 resolve: `gatsby-plugin-mdx`,
27 options: {
28 defaultLayouts: { default: path.resolve("./src/components/layout.js") }
29 }
30 },
31 {
32 resolve: `gatsby-plugin-alias-imports`,
33 options: {
34 alias: {
35 react: path.resolve("./node_modules/react"),
36 "react-dom": path.resolve("./node_modules/react-dom")
37 },
38 extensions: []
39 }
40 },
41 "gatsby-plugin-react-helmet",
42 {
43 resolve: `gatsby-source-filesystem`,
44 options: {
45 name: `images`,
46 path: `${__dirname}/src/images`
47 }
48 },
49 {
50 resolve: `gatsby-source-filesystem`,
51 options: {
52 name: `pages`,
53 path: `${__dirname}/src/pages`
54 }
55 },
56 "gatsby-transformer-sharp",
57 "gatsby-plugin-sharp",
58 {
59 resolve: `gatsby-plugin-manifest`,
60 options: {
61 name: "gatsby-default-mdx-basic",
62 short_name: "starter",
63 start_url: "/",
64 background_color: "#663399",
65 theme_color: "#663399",
66 display: "minimal-ui",
67 icon: "src/images/logo.png" // This path is relative to the root of the site.
68 }
69 }
70 // this (optional) plugin enables Progressive Web App + Offline functionality
71 // To learn more, visit: https://gatsby.app/offline
72 // 'gatsby-plugin-offline',
73 ]
74};