Skip to the content

Your server

Going live

The checklist for putting the editor in front of your users. Work through it on staging with test keys first, then once more with live keys.

Plan and organization#

  • A plan is active (Billing in the dashboard). Live keys don't get licenses before that.
  • Your plan covers your expected use: applications, domains per key, saves per day, file size (Plans and limits).
  • At least two owners, so access never depends on one person (Organizations and team).
  • Whoever handles invoices has the Billing role, and the billing email is right.

Keys and domains#

  • The application has live keys: a secret key, and a publishable key listing every production address (https://app.example.com, and https://www.example.com if the editor runs there too).
  • Test keys stay on development and staging. Live and test keys are never mixed.
  • Nobody's personal test key is used outside their own machine.

Your server (strict mode)#

  • DORVYN_SECRET_KEY is set to the live secret key in production's environment, and nowhere else: not in the repository, not in pages, not in logs.
  • The route returns your real signed-in user's opaque id, and nothing for visitors who aren't signed in.
  • The route allows request bodies as large as your largest documents.
  • Your error tracking sees the route's server errors (they're logged with console.error).
  • Optionally, origins lists your production addresses.

Pages#

  • The page has server-url (or serverUrl, dorvynServerUrl), and no dvn_ key appears anywhere in the page or its JavaScript. Search your build output for dvn_.
  • The editor's container has a height on every screen size you support.
  • Your content security policy allows the editor, and the console shows no CSP errors.
  • If people keep documents in your app: saving to your store works (onSave), including a failed save, which the person must hear about (Opening and saving documents).
  • autosave-key is unique per document (for example doc-${id}), so drafts of different documents don't mix.

Try it as a user#

  • Open the editor signed in: it's editable within a few seconds.
  • Type, reload: the draft is back.
  • Save as Word: the file opens in Word and looks the same.
  • Sign out in another tab: within about ten minutes the editor becomes read-only and says why.
  • On a slow connection (the browser's network throttling), the editor still starts.

After launch#

  • Look at Usage after the first day: grants and saves as you expect.
  • Look at Security now and then: refused attempts on your keys, and anything unusual.
  • Put key rotation in your calendar (Keys and domains).
  • Keep the SDK up to date. When a version is too old to be supported, the editor says so and stops getting licenses, so update well before then.