Skip to content

michaltakac/aframe-next-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aframe-next-static

Deploy to now

This boilerplate leverages extremely simple deployment flow from Zeit's Now, now available for WebVR with A-Frame and React!

Libraries

Installation

To get started:

npm install # or yarn install
npm run dev

Development server now lives at http://localhost:3000.

This project uses static exporting feature from Next.js. If you wan't to build a Multiverse of multiple "pages" or "routes" (or should I say worlds?) and navigate through them, you need to provide a map of the routes in next.config.js. Read more info here.

Note: Next.js is universal, which means it executes code first server-side, then client-side. The window object is only present client-side, so if you absolutely need to have access to it in some React component, you should put that code in componentDidMount. Check the /pages/index.js how we're doing it right now. You can load A-Frame-specific librabries like that. More info here.

Deploy with ▲Now:

npm run deploy

About

Build WebVR apps with React and serve them as static site on Zeit's Now!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages