This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delete indexjs and create appjs for prerender
- Loading branch information
Anthony Campolo
committed
Sep 2, 2021
1 parent
8d53c6b
commit 848fa6d
Showing
3 changed files
with
44 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { AuthProvider } from '@redwoodjs/auth' | ||
import { createClient } from '@supabase/supabase-js' | ||
|
||
import { FatalErrorBoundary, RedwoodProvider } from '@redwoodjs/web' | ||
import { RedwoodApolloProvider } from '@redwoodjs/web/apollo' | ||
|
||
import FatalErrorPage from 'src/pages/FatalErrorPage' | ||
import Routes from 'src/Routes' | ||
|
||
import './scaffold.css' | ||
import './index.css' | ||
|
||
const supabaseClient = createClient( | ||
process.env.SUPABASE_URL, | ||
process.env.SUPABASE_KEY | ||
) | ||
|
||
const App = () => ( | ||
<FatalErrorBoundary page={FatalErrorPage}> | ||
<RedwoodProvider titleTemplate="%PageTitle | %AppTitle"> | ||
<AuthProvider client={supabaseClient} type="supabase"> | ||
<RedwoodApolloProvider> | ||
<Routes /> | ||
</RedwoodApolloProvider> | ||
</AuthProvider> | ||
</RedwoodProvider> | ||
</FatalErrorBoundary> | ||
) | ||
|
||
export default App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="icon" type="image/png" href="/favicon.png" /> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
</head> | ||
<body> | ||
<div id="redwood-app"></div> | ||
</body> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="icon" type="image/png" href="/favicon.png" /> | ||
</head> | ||
|
||
<body> | ||
<div id="redwood-app"> | ||
<!-- Please keep the line below for prerender support. --> | ||
<%= prerenderPlaceholder %> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.