|
|
@ -135,9 +135,10 @@ export function API() {
|
|
|
|
send(res, 500, `
|
|
|
|
send(res, 500, `
|
|
|
|
<body style="font-family: sans-serif; background: rgb(255,215,215); border: 2px solid red; margin: 0; padding: 1em;">
|
|
|
|
<body style="font-family: sans-serif; background: rgb(255,215,215); border: 2px solid red; margin: 0; padding: 1em;">
|
|
|
|
<h1>Missing .env file</h1>
|
|
|
|
<h1>Missing .env file</h1>
|
|
|
|
<p>In order to use GitHub authentication, you will need to <a target="_blank" href="https://github.com/settings/developers">register an OAuth application</a> with <code>gist</code> and <code>read:user</code> scopes, and create a .env file:</p>
|
|
|
|
<p>In order to use GitHub authentication, you will need to <a target="_blank" href="https://github.com/settings/developers">register an OAuth application</a> and create a local .env file:</p>
|
|
|
|
<pre>GITHUB_CLIENT_ID=[YOUR_APP_ID]\nGITHUB_CLIENT_SECRET=[YOUR_APP_SECRET]\nBASEURL=http://localhost:3000</pre>
|
|
|
|
<pre>GITHUB_CLIENT_ID=[YOUR_APP_ID]\nGITHUB_CLIENT_SECRET=[YOUR_APP_SECRET]\nBASEURL=http://localhost:3000</pre>
|
|
|
|
<p>The <code>BASEURL</code> variable should match the callback URL specified for your app.</p>
|
|
|
|
<p>The <code>BASEURL</code> variable should match the callback URL specified for your app.</p>
|
|
|
|
|
|
|
|
<p>See also <a target="_blank" href="https://github.com/sveltejs/svelte/tree/master/site#repl-github-integration">here</a></p>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
`, {
|
|
|
|
`, {
|
|
|
|
'Content-Type': 'text/html; charset=utf-8'
|
|
|
|
'Content-Type': 'text/html; charset=utf-8'
|
|
|
|