Skip to content

Commit

Permalink
load content in serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalkr committed Jul 29, 2020
1 parent 0acacdb commit 02d2981
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/_app.tsx
Expand Up @@ -10,6 +10,10 @@ import { BrowserStorageApi } from 'utils/plugins/browser-storage-api/BrowserStor
import { GithubClient, TinacmsGithubProvider } from 'react-tinacms-github'
import { GlobalStyle } from 'components/styles/GlobalStyle'
import 'components/styles/fontImports.css'
import path from 'path'

// the following line will cause all content files to be available in a serverless context
path.resolve('./content/')

const MainLayout = ({ Component, pageProps }) => {
const tinaConfig = {
Expand Down

0 comments on commit 02d2981

Please sign in to comment.