diff --git a/src/Main.hs b/src/Main.hs index 641119b..ec4b721 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -29,10 +29,6 @@ stripPathPrefix (splitDirectories -> prefix) = main :: IO () main = hakyllWith config $ do - match "_redirects" $ do - route idRoute - compile copyFileCompiler - frontendManifest <- preprocess $ Yaml.decodeFileThrow @_ @(Map String [FilePath]) "frontend/dist/.manifest.yaml" @@ -66,3 +62,7 @@ main = hakyllWith config $ do compile copyFileCompiler match "templates/*" $ compile templateBodyCompiler + + match "static/**" $ do + route $ stripPathPrefix "static" + compile copyFileCompiler diff --git a/_redirects b/static/_redirects similarity index 100% rename from _redirects rename to static/_redirects diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /