From 021d0093304114a93669ab74262133039bed3364 Mon Sep 17 00:00:00 2001 From: m5r Date: Thu, 2 Sep 2021 05:55:29 +0800 Subject: [PATCH] service static files by fly.io proxies --- fly.dev.toml | 8 ++++++++ fly.prod.toml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/fly.dev.toml b/fly.dev.toml index 5ecef8d..9f9c9f9 100644 --- a/fly.dev.toml +++ b/fly.dev.toml @@ -46,3 +46,11 @@ processes = [] interval = "15s" restart_limit = 6 timeout = "2s" + +[[statics]] +guest_path = "/app/.next/static" +url_prefix = "/_next/static" + +[[statics]] +guest_path = "/app/public/fonts" +url_prefix = "/fonts" diff --git a/fly.prod.toml b/fly.prod.toml index df5edd4..812dda7 100644 --- a/fly.prod.toml +++ b/fly.prod.toml @@ -46,3 +46,11 @@ processes = [] interval = "15s" restart_limit = 6 timeout = "2s" + +[[statics]] +guest_path = "/app/.next/static" +url_prefix = "/_next/static" + +[[statics]] +guest_path = "/app/public/fonts" +url_prefix = "/fonts"