git.iko.soy/rowtype-yoga/psfp
on 982389d help sign in
rowtype-yoga/psfp/blog/gatsby-config.js
83 lines 2.0 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-web-font-loader",
33 options: {
34 custom: {
35 families: ["Rubik"],
36 urls: ["/fonts/fonts.css"]
37 }
38 }
39 },
40 {
41 resolve: `gatsby-plugin-alias-imports`,
42 options: {
43 alias: {
44 react: path.resolve("./node_modules/react"),
45 "react-dom": path.resolve("./node_modules/react-dom")
46 },
47 extensions: []
48 }
49 },
50 "gatsby-plugin-react-helmet",
51 {
52 resolve: `gatsby-source-filesystem`,
53 options: {
54 name: `images`,
55 path: `${__dirname}/src/images`
56 }
57 },
58 {
59 resolve: `gatsby-source-filesystem`,
60 options: {
61 name: `pages`,
62 path: `${__dirname}/src/pages`
63 }
64 },
65 "gatsby-transformer-sharp",
66 "gatsby-plugin-sharp",
67 {
68 resolve: `gatsby-plugin-manifest`,
69 options: {
70 name: "gatsby-default-mdx-basic",
71 short_name: "starter",
72 start_url: "/",
73 background_color: "#663399",
74 theme_color: "#663399",
75 display: "minimal-ui",
76 icon: "src/images/logo.png" // This path is relative to the root of the site.
77 }
78 }
79 // this (optional) plugin enables Progressive Web App + Offline functionality
80 // To learn more, visit: https://gatsby.app/offline
81 // 'gatsby-plugin-offline',
82 ]
83};