Move config to root folder

This commit is contained in:
LordMathis 2018-09-16 11:43:44 +02:00
parent 9da4832b64
commit 68c7d36521
6 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import config from '../utils/config.json';
import config from '../../config.json';
import '../static/stylesheets/globals.scss';
import styles from './Home.scss';

View File

@ -1,5 +1,5 @@
import React, {Component} from 'react';
import config from '../utils/config.json';
import config from '../../config.json';
import '../static/stylesheets/globals.scss';
import styles from './Navbar.scss';

View File

@ -2,7 +2,7 @@ const data = require('./data.json');
const api = require('express').Router();
const fs = require('fs');
const path = require('path');
const config = require('./config.json');
const config = require('../../config.json');
api.get('/blog', (req, res) => {
res.set('Cache-Control', 'no-cache');

View File

@ -5,7 +5,7 @@ const moment = require('moment');
const jsonfile = require('jsonfile');
const async = require('async');
const fm = require('front-matter');
const config = require('../utils/config.json');
const config = require('../../config.json');
/**
* Renders file using MarkdownIt

View File

@ -2,7 +2,7 @@ const fs = require('fs');
const path = require('path');
const async = require('async');
const Compiler = require('./compiler');
const config = require('./config.json');
const config = require('../../config.json');
const data = require('./data.json');
module.exports = function() {