Giter Club home page Giter Club logo

next-blog-firestore's Issues

Needed to add .babelrc to utilize mobx decorators

It could just be my environment, but in order to get the admin to run correctly I had to add a .babelrc file to the root with the following to utilize decorators:

 {
    "presets": [
      "next/babel"
    ],
    "plugins": [
      "transform-decorators-legacy"
    ]
  }

Great project though - thanks for sharing!

Static page hosting

It will be quite useful if we can utilize the Firebase hosting. Any plans to convert to a static single app with next export or something else?

I've done a little experiment but no luck by simply adding a few lines into next.config.js:

  exportPathMap: function() {
    return {
      '/': { page: '/' }
    }
  }

It turns out to be:

./node_modules/next/dist/bin/next export
  using build directory: /Users/legend/github/next-blog-firestore/.next
  copying "static" directory
  exporting path: /
TypeError: Cannot read property 'cookie' of undefined
    at Function.getInitialProps (/Users/legend/github/next-blog-firestore/.next/dist/pages/_document.js:147:41)
    at _callee$ (/Users/legend/github/next-blog-firestore/node_modules/next/dist/lib/utils.js:36:30)
    at tryCatch (/Users/legend/github/next-blog-firestore/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/Users/legend/github/next-blog-firestore/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (/Users/legend/github/next-blog-firestore/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (/Users/legend/github/next-blog-firestore/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /Users/legend/github/next-blog-firestore/node_modules/babel-runtime/helpers/asyncToGenerator.js:35:14
    at new Promise (<anonymous>)
    at new F (/Users/legend/github/next-blog-firestore/node_modules/core-js/library/modules/_export.js:35:28)
    at /Users/legend/github/next-blog-firestore/node_modules/babel-runtime/helpers/asyncToGenerator.js:14:12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.