Skip to main content
Browse docs

Configure an application and restart it safely

Fill in the values your app needs, let 1904 generate the ones it can, paste a .env file, and restart so the app picks them up.

On this page

Your app's configuration is the set of values it runs with: API keys, addresses, secrets and options. Open the app, select Settings, then Configuration.

The fields come from your app itself. When a build adds a feature that needs a key, a new field appears here. The header shows setup needed while required values are missing and ready when everything required is set.

Only the owner can save values. The exception is a member finishing a production app they were allowed to create (see Create your production app).

Configuration section with required values, fill-in helpers and the restart banner

Fill in values

  1. Read the line under the header. It tells you how many values the app still needs and how many 1904 can create for you.
  2. Look for fields marked required. With a long list, use Needs attention, Set and All, or Search values.
  3. Use the helper button where one is offered:
    • Use my app's address fills in the app's own web address.
    • Use my app's storage points the app at its persistent file storage.
    • Generate one for me creates a private random value, such as a signing secret.
    • Fill in the (number) we can create for you does all of them at once.
  4. Paste anything else from the service it belongs to. To bring over several values at once, select Paste a .env file, paste lines like NAME=value, and select Fill in fields. Names the app doesn't use are skipped, and nothing is saved yet.
  5. Select Save values in the bar at the bottom of the card.

Secrets are stored encrypted and are only ever sent to your app. After saving, a secret is never shown again; the field says "Enter a new value to replace". A field marked "Managed in App AI" is filled by 1904 when App AI is on.

Paste secrets only into these fields. Don't put them in change requests, chat, code, screenshots or support tickets.

Payments and email

If your app takes payments, a Stripe section appears at the top. See Connect Stripe payments.

If your app sends email through Resend, a Resend email section lists the steps: create or open your Resend account, verify a domain you own and use it in MAIL_FROM, then paste a sending-only API key. Resend has no sandbox, so emails go to real recipients even from a development app.

Apply your changes

Saved values reach the app the next time it starts. Until then a banner says "Your saved changes aren't live yet."

  1. Select Restart app in the banner or the bottom bar. If the app isn't running, the button says Start app instead.
  2. Wait for the status on Overview to show the app is back up.
  3. Try the feature that uses the value you changed.

A restart keeps your code, data and files. The app is briefly unavailable while it relaunches, so pick a quiet moment for an app people are using.

Development and production values

A development app runs on its own set of values and its production app on another, so a test key in development never leaks into production. Set production's values from the production app's own Settings > Configuration.