git.iko.soy/rowtype-yoga/psfp
on 29ee243 help sign in
rowtype-yoga/psfp/blog/gatsby-config.js
81 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 },
10 developMiddleware: app => {
11 app.use(
12 "/api",
13 proxy({
14 target: "http://127.0.0.1:14188",
15 pathRewrite: {
16 "/api": ""
17 }
18 })
19 );
20 },
21 plugins: [
22 "gatsby-plugin-purescript",
23 {
24 resolve: `gatsby-plugin-mdx`,
25 options: {
26 defaultLayouts: { default: path.resolve("./src/components/layout.js") }
27 }
28 },
29 {
30 resolve: "gatsby-plugin-web-font-loader",
31 options: {
32 custom: {
33 families: ["Rubik"],
34 urls: ["/fonts/fonts.css"]
35 }
36 }
37 },
38 {
39 resolve: `gatsby-plugin-alias-imports`,
40 options: {
41 alias: {
42 react: path.resolve("./node_modules/react"),
43 "react-dom": path.resolve("./node_modules/react-dom")
44 },
45 extensions: []
46 }
47 },
48 "gatsby-plugin-react-helmet",
49 {
50 resolve: `gatsby-source-filesystem`,
51 options: {
52 name: `images`,
53 path: `${__dirname}/src/images`
54 }
55 },
56 {
57 resolve: `gatsby-source-filesystem`,
58 options: {
59 name: `pages`,
60 path: `${__dirname}/src/pages`
61 }
62 },
63 "gatsby-transformer-sharp",
64 "gatsby-plugin-sharp",
65 {
66 resolve: `gatsby-plugin-manifest`,
67 options: {
68 name: "gatsby-default-mdx-basic",
69 short_name: "starter",
70 start_url: "/",
71 background_color: "#663399",
72 theme_color: "#663399",
73 display: "minimal-ui",
74 icon: "src/images/logo.png" // This path is relative to the root of the site.
75 }
76 },
77 // this (optional) plugin enables Progressive Web App + Offline functionality
78 // To learn more, visit: https://gatsby.app/offline
79 // 'gatsby-plugin-offline',
80 ]
81};