NextWeb.js

NextWeb.js

  • Docs
  • GitHub

›App

Getting Started

  • Getting Started
  • Folder Structure
  • Create a New Page
  • Navigate Between Pages

App

  • Environment Variables
  • Module Alias
  • Routing
  • Context
  • Store
  • Authentication

Page

  • Layout
  • Meta
  • Breadcrumb
  • Stats
  • Restricted Pages

Data Fetching

  • Repositories & Services
  • Server-Side Fetching
  • Client-Side Fetching
  • Error Handling
  • Custom Error

Styling

  • Local Styles
  • Global Styles
  • Grids
  • Style Helpers
  • Fonts
  • Icons

Deployment

  • Deployment

Environment Variables

We use environment variables to store the app configuration.

VariablesExample
HOSThttp://localhost:3000
API_URLhttp://localhost:3001
ASSET_PREFIX 
STATIC_PREFIX/static
GTM_CONTAINER_IDGTM-1234567

Note: ASSET_PREFIX can be blank in local environment.

You can defined these variables in .env file at the root of the project. Please note that the .env file is ignored from the repository and you can use .env.default file as a starter.

← Navigate Between PagesModule Alias →