d6721676ca
* Add an example for Fauna using cookie based auth. * Update example to use more secure method of non-js cookie and all authed access via backend api calls. * Updated README * Updated files and added prettier * Remove unused import to fix lint issue. * Improve documentation on how to setup fauna. Remove client key to simplify setup. * Remove semicolons * Lint fix * Updated readme instructions and deployment * Fixed client side redirect issue with /profile * Simplified login code * Simplified signup code * Removed isomorphic-unfetch * Simplified logout * Removed get-host file * Removed the custom getInitialProps from withAuthSync * Removed user email from localStorage Co-authored-by: Luis Alvarez D. <luis@zeit.co>
8 lines
201 B
JavaScript
8 lines
201 B
JavaScript
require('dotenv').config()
|
|
|
|
module.exports = {
|
|
env: {
|
|
// Set the fauna server key in the .env file and make it available at Build Time.
|
|
FAUNA_SERVER_KEY: process.env.FAUNA_SERVER_KEY,
|
|
},
|
|
}
|