-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
45 lines (43 loc) · 1.27 KB
/
gatsby-config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import type { GatsbyConfig } from 'gatsby'
import { createProxyMiddleware } from 'http-proxy-middleware'
const config: GatsbyConfig = {
siteMetadata: {
title: 'gbswcenter',
siteUrl: 'https://gbsw.hs.kr'
},
// More easily incorporate content into your pages through automatic TypeScript type generation and better GraphQL IntelliSense.
// If you use VSCode you can also use the GraphQL plugin
// Learn more at: https://gatsby.dev/graphql-typegen
graphqlTypegen: true,
plugins: [
'gatsby-plugin-sass',
'gatsby-plugin-pnpm',
{
resolve: 'gatsby-plugin-nprogress',
options: {
color: '#2A9CD4',
showSpinner: false
}
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: '경북소프트웨어고 포트폴리오',
short_name: '경소고 포트폴리오',
start_url: '/',
background_color: '#f5f5f5',
theme_color: '#2A9CD4',
display: 'standalone',
icon: 'src/favicon.svg',
cache_busting_mode: 'none'
}
}
],
developMiddleware: (app) => {
app.use('/api', createProxyMiddleware({
target: process.env.LOCAL_SERVER ? 'http://localhost:3000' : 'http://13.125.194.128:3000'
}))
},
trailingSlash: 'never'
}
export default config