Skip to content

Commit 545b037

Browse files
authored
Serve the output directory from compile.purescript.org (#159)
* Serve the output directory from compile.purescript.org * Only serve JS files
1 parent 94689fc commit 545b037

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

deploy/nginx.conf

+6
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,10 @@ server {
7575
location / {
7676
proxy_pass http://127.0.0.1:8081;
7777
}
78+
79+
# Serve JS files from the output directory. We use a regular expression
80+
# match to ensure that we only serve JS files.
81+
location ~ ^/output/(.+\.js)$ {
82+
alias /var/www/trypurescript/staging/.psci_modules/node_modules/$1;
83+
}
7884
}

0 commit comments

Comments
 (0)