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