Deploy

Once you're ready to deploy to production it's time to hook up Alinea to a backend. The Alinea handler needs access to a backend service that can authenticate users, store drafts and publish changes back to the git repository.

Update your CMS config to inform Alinea where to generate the admin dashboard.

export const cms = createCMS({
  // ...
  handlerUrl: '/api/cms',
  dashboardFile: 'admin.html'
})

While building your project, an admin folder will be created together with the dashboardFile as defined within your CMS config. Exclude the admin path and the staticFile from git by adding them to your .gitignore file:

.gitignore
/public/admin*

Deploy your code and follow the instructions on /admin.html to configure your backend.