Skip to content

Deployment of site with SSR functionality #603

Answered by jaredcwhite
vs-it-admin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vs-it-admin — I recently moved my own business site onto Render, and it's a simple example of using both a static and a server endpoint in a single config (aka a hybrid deployment), so I'll share it below:

services:
  - type: web
    name: whitefusion-site
    env: static
    buildCommand: bin/bridgetown deploy
    staticPublishPath: ./output
    pullRequestPreviewsEnabled: true
    envVars:
      - key: BRIDGETOWN_ENV
        value: production
      - fromGroup: whitefusion-prod-envs
    headers:
      - path: /*
        name: X-Frame-Options
        value: DENY
      - path: /*
        name: X-XSS-Protection
        value: "1; mode=block"
      - path: /*
        name: X-Content-Typ…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@vs-it-admin
Comment options

@vs-it-admin
Comment options

@jaredcwhite
Comment options

@vs-it-admin
Comment options

@vs-it-admin
Comment options

Answer selected by vs-it-admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants