Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@campj/preview

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@campj/preview

- Quickly create & configure a Heroku app that will provide a live preview for DatoCMS - Creates a \_redirects file in the 'static' folder - Creates a Procfile that instructs Heroku on how to run the app - Creates a netlify.toml with DATO_API_TOKEN (move

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

@campj/preview

  • Quickly create & configure a Heroku app that will provide a live preview for DatoCMS
  • Creates a _redirects file in the 'static' folder
  • Creates a Procfile that instructs Heroku on how to run the app
  • Creates a netlify.toml with DATO_API_TOKEN (move to @campj/dato ????)

Options

KeyTypeDefault ValueDetails
herokuAppNameStringCan't contain spaces or capital letters
If ommitted, terminal will prompt user for a name
previewSlugString'preview'Used to redirect to the Heroku app
datoAPITokenStringprocess.env.DATO_API_TOKENRequired if DATO_API_TOKEN is not defined in .env file

Important Note

  • After this plugins runs, be sure to commit. Then, run git push heroku master to deploy.
  • A Procfile is created when you first start your site after configuring this theme in your plugins. To prevent the creation of a new Heroku app every time you start your site, make sure you do NOT delete the Procfile.
NEED TO DO:
  • add env vars to root netlify.toml if 'site' and 'studio' are in the same repo (otherwise netlify build won't work)

FAQs

Package last updated on 16 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc