This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path") | |
let contentfulConfig | |
try { | |
// Load the Contentful config from the .contentful.json | |
contentfulConfig = require("./.contentful") | |
const currentEnv = process.env.NODE_ENV | |
//TODO: Allow for preview API usage | |
// contentfulConfig = | |
// currentEnv === "production" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
// Specify the line length that the printer will wrap on. | |
printWidth: 120, | |
// Specify the number of spaces per indentation-level. | |
tabWidth: 4, | |
// Indent lines with tabs instead of spaces. | |
useTabs: false, |