Novel
Get NovelGuidesAPI Reference
Latest - 2025.1.0
Latest - 2025.1.0
  • Welcome to Novel
  • Start
  • Philosophy
  • Tech Stack
  • Releases
  • Versions
  • Changelog
  • License
  • Privacy
  • Warranty
  • Security Policy
  • Errors
    • Cannot start Novel
    • Unauthorized
    • Invalid Session
    • Validation Failed
  • Novel Server
    • Getting Started
    • Project Structure
    • With Novel Web
    • Configuration
    • Novel CLI
      • novel dev
      • novel start
      • novel new
    • Novel API
      • API Reference
    • Database
      • Caching
    • Migrations
    • Models
    • Routing
      • Route Directives
      • Middleware
      • Request Helpers
      • Schema
    • Sessions
    • Authentication
      • Passwords
      • Magic Links
      • Two-Factor Authentication
      • Forget Password
      • Email Verification
      • OAuth2 Support
    • Authorization
    • Users
    • Organizations
    • Subscriptions
    • Pricing
    • Validation
    • Mail
    • Notifications
    • API Keys
    • Events
    • Errors
    • Feature Flags
    • Uploading Files
    • Testing
    • Scheduled Cron Jobs
    • Background Jobs
    • Sockets
    • Logging
    • Telemetry
    • Deployment
  • Novel Web
    • Getting Started
    • Configuration
    • Project Structure
    • Routing
    • Layout and Styles
    • Authentication
    • Authorization
    • Requests
    • Request Files
    • Validation
    • Components
      • Button
      • Alerts
      • Copybox
      • Inline Notify
      • Input
      • Select
      • Toast
      • Toggle
      • Upload
      • Stripe Card
    • Hooks
      • useSession
      • useMobile
      • getSession
      • useFeature
      • useAuthorized
      • useNotification
      • useSocket
    • Localstorage
    • Errors
    • Internationalization (i18n)
    • Constants
    • Feature Flags
    • Testing
    • Telemetry
    • Deployment
    • Devtools (Alpha)
Powered by GitBook
On this page
  • In different server
  • Configure Novel API
  • Configure Novel Web
  • In the same server
  • Changelog

Was this helpful?

  1. Novel Server

With Novel Web

Last updated 5 months ago

Was this helpful?

Novel can be used with or without Novel Web. However, If you would like to use it with Novel Web, or if you have used the express installation method; you would have Novel Web inside your /web directory.

Normally, the software would be able to detect if this is inside that directory.

But if you would want to deploy Novel Web separately into Vercel, like the tutorial below

You will need to perform a couple more steps.

In different server

1

Configure Novel API

Make sure you set the Novel API to know where the Novel Web instance is set. This is usually the domain for that instance

.env
HOST=https://canary.novel.dev
WEB_HOST=https://demo.novel.dev

...rest of your `.env`
2

Configure Novel Web

Add this environment variable in the server that you set up Novel Web on.

.env
NEXT_PUBLIC_API_HOST=https://canary.novel.dev
...rest of your `.env`

For example, with Vercel

In the same server

As long as Novel Web is inside the /web directory, Novel API will make sure it will serve it in the same host as the API.

No additional set up is required.

Changelog

  • 2024-12-20 - Initial Documentation

Deploying to Vercel | Novel
Deploying to Vercel | Novel
Logo
Logo