Skip to content

Commit

Permalink
fix: fix the admin directory problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes committed Nov 13, 2020
1 parent 9f1d1f2 commit 021fa67
Show file tree
Hide file tree
Showing 18 changed files with 72 additions and 244 deletions.
Empty file added assets/css/main.css
Empty file.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: Making sense of the SCAA’s new Flavor Wheel
date: 2016-12-17T15:04:10.000Z
featuredpost: false
featuredimage: /assets/images/flavor_wheel.jpg
description: The Coffee Taster’s Flavor Wheel, the official resource used by coffee tasters, has been revised for the first time this year.
image: /assets/images/flavor_wheel.jpg
tags:
- flavor
- tasting
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: A beginners’ guide to brewing with Chemex
date: 2017-01-04T15:04:10.000Z
featuredpost: false
featuredimage: /assets/images/chemex.jpg
description: Brewing with a Chemex probably seems like a complicated, time-consuming ordeal, but once you get used to the process, it becomes a soothing ritual that's worth the effort every time.
image: /assets/images/chemex.jpg
tags:
- brewing
- chemex
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
title: 'Just in: small batch of Jamaican Blue Mountain in store next week'
date: 2017-01-04T15:04:10.000Z
featuredpost: true
featuredimage: /assets/images/assets/images/blog-index.jpg
description: >-
We’re proud to announce that we’ll be offering a small batch of Jamaica Blue
Mountain coffee beans in our store next week.
image: /assets/images/blog-index.jpg
tags:
- jamaica
- green beans
Expand Down
7 changes: 7 additions & 0 deletions content/projects/story-story-test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"date": "2020-09-08T20:35:29.027Z",
"project_type": "story",
"title": "Story test",
"description": "Short descriptive text",
"body": "Longer **markdown**-*enabled* content text."
}
5 changes: 5 additions & 0 deletions content/site/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sitename": "NTN Boilerplate",
"sitedescription": "NTN Boilerplate description",
"sitelang": "en-US"
}
12 changes: 12 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"],
"~~/*": ["./*"],
"@@/*": ["./*"]
}
},
"exclude": ["node_modules", ".nuxt", "dist"]
}
19 changes: 0 additions & 19 deletions lambda/hello.js

This file was deleted.

16 changes: 2 additions & 14 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
[build]
publish = "dist"
command = "npm run generate"
functions = "lambda"

[[redirects]]
from = "/admin"
to = "/admin/"
status = 301
force = true

[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
command = "npm run generate"
publish = "dist/"
19 changes: 14 additions & 5 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ export default {
// Target (https://go.nuxtjs.dev/config-target)
target: 'static',

// Environment variables: https://nuxtjs.org/api/configuration-env/
env: {
url:
process.env.NODE_ENV === 'production'
? process.env.URL || 'http://createADotEnvFileAndSetURL'
: 'http://localhost:3000',
lang: 'en-US',
},

// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
title: 'Nuxt + Netlify CMS Starter',
Expand All @@ -15,8 +24,12 @@ export default {
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},

generate: {
fallback: true,
},

// Global CSS (https://go.nuxtjs.dev/config-css)
css: [],
css: ['@/assets/css/main.css'],

// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: [],
Expand All @@ -34,10 +47,6 @@ export default {

// Modules (https://go.nuxtjs.dev/config-modules)
modules: [
// https://go.nuxtjs.dev/axios
// '@nuxtjs/axios',
// https://go.nuxtjs.dev/pwa
// '@nuxtjs/pwa',
// https://go.nuxtjs.dev/content
'@nuxt/content',
],
Expand Down
118 changes: 9 additions & 109 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
},
"dependencies": {
"@nuxt/content": "^1.9.0",
"@nuxtjs/axios": "^5.12.2",
"@nuxtjs/pwa": "^3.0.2",
"@tailwindcss/typography": "^0.2.0",
"core-js": "^3.6.5",
"nuxt": "^2.14.6"
Expand All @@ -40,4 +38,4 @@
"netlify-cms"
],
"license": "MIT"
}
}
Loading

0 comments on commit 021fa67

Please # to comment.