git.iko.soy/rowtype-yoga/psfp
on c810fc0 help sign in
rowtype-yoga/psfp/blog/gatsby-config.js
81 lines 2.1 kB history raw
1const path = require("path");
2var proxy = require("http-proxy-middleware")
4module.exports = {
5 siteMetadata: {
6 title: "Gatsby Starter MDX Basic",
7 description:
8 "Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.",
9 author: "@chrisbiscardi"
10 },
11 developMiddleware: app => {
12 app.use(
13 "/api", proxy({
14 target: "http://127.0.0.1:14188",
15 pathRewrite: {
16 "/api": "",
17 }
18 })
19 )
20 },
21 plugins: [
22 {
23 resolve: `gatsby-plugin-mdx`,
24 options: {
25 defaultLayouts: { default: path.resolve("./src/components/layout.js") }
26 }
27 },
28 {
29 resolve: "gatsby-plugin-web-font-loader",
30 options: {
31 custom: {
32 families: ["Rubik"],
33 urls: ["/fonts/fonts.css"],
34 },
35 },
36 },
37 {
38 resolve: `gatsby-plugin-alias-imports`,
39 options: {
40 alias: {
41 react: path.resolve("./node_modules/react"),
42 "react-dom": path.resolve("./node_modules/react-dom")
43 },
44 extensions: []
45 }
46 },
47 "gatsby-plugin-react-helmet",
48 {
49 resolve: `gatsby-source-filesystem`,
50 options: {
51 name: `images`,
52 path: `${__dirname}/src/images`
53 }
54 },
55 {
56 resolve: `gatsby-source-filesystem`,
57 options: {
58 name: `pages`,
59 path: `${__dirname}/src/pages`
60 }
61 },
62 "gatsby-plugin-purescript",
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/gatsby-icon.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};