Files
freeCodeCamp/packages/learn/gatsby-config.js
mrugesh mohapatra 910dd0584c fix: all things (#124)
* fix 'Testing with Chai' 404 error

* Remove service worker and unregister old workers from clients

* Fix block name in QA and Chai intro

* Move the map to the index page

* Split test commands, have travis run format on test

* Only expand the first block

* Remove some margin from p tags on the index page

* Learn -> Curriculum link in header

* UI Fixes

* Use webpack plugin to destroy sercive worker

* Add spinner for unknown user state

* Fix map placement

* Fix vcurriculum button clicks
2018-09-27 20:05:50 +05:30

74 lines
2.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

require('dotenv').config();
const path = require('path');
const { buildChallenges$ } = require('./seed/buildChallenges');
module.exports = {
siteMetadata: {
title: 'freeCodeCamp | Learn to code and help non-profits ',
siteUrl: 'https://learn.freecodecamp.org'
},
proxy: {
prefix: '/external',
url: 'http://localhost:3000'
},
plugins: [
'gatsby-plugin-react-next',
'gatsby-plugin-react-helmet',
{
resolve: 'fcc-source-challenges',
options: {
name: 'challenges',
path: path.resolve(__dirname, './seed/challenges'),
source: buildChallenges$
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'introductions',
path: path.resolve(__dirname, './src/introductions')
}
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-prismjs',
options: {
// Class prefix for <pre> tags containing syntax highlighting;
// defaults to 'language-' (eg <pre class="language-js">).
// If your site loads Prism into the browser at runtime,
// (eg for use with libraries like react-live),
// you may use this to prevent Prism from re-processing syntax.
// This is an uncommon use-case though;
// If you're unsure, it's best to use the default value.
classPrefix: 'language-',
// This is used to allow setting a language for inline code
// (i.e. single backticks) by creating a separator.
// This separator is a string and will do no white-space
// stripping.
// A suggested value for English speakers is the non-ascii
// character ''.
inlineCodeMarker: null,
// This lets you set up language aliases. For example,
// setting this to '{ sh: "bash" }' will let you use
// the language "sh" which will highlight using the
// bash highlighter.
aliases: {}
}
}
]
}
},
{
resolve: 'gatsby-plugin-google-fonts',
options: {
fonts: ['Lato:400,400i,500']
}
},
'gatsby-plugin-sitemap'
]
};