Skip to content

Commit

Permalink
Merge pull request #28 from HausDAO/fix-deploy
Browse files Browse the repository at this point in the history
chore: improve environment configuration
  • Loading branch information
earth2travis authored Feb 13, 2025
2 parents f4b1aad + 291d4f0 commit 53f5137
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ Brewfile.lock.json
# IDE configs
.idea/

.next/cache/
.next/cache/

wrangler.toml
8 changes: 4 additions & 4 deletions src/providers/Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export const config = createConfig({

const queryClient = new QueryClient();

const daoHooksConfig = {
graphKey: process.env.NEXT_PUBLIC_GRAPH_KEY || "",
};

function Providers({ children }: React.PropsWithChildren) {
const daoHooksConfig = {
graphKey: process.env.NEXT_PUBLIC_GRAPH_KEY || "",
};

return (
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
Expand Down
8 changes: 0 additions & 8 deletions wrangler.toml

This file was deleted.

15 changes: 15 additions & 0 deletions wrangler.toml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name = "farcastle-proposals-frame"
compatibility_date = "2024-07-29"
compatibility_flags = ["nodejs_compat"]
pages_build_output_dir = ".vercel/output/static"

[vars]
NEXT_PUBLIC_GRAPH_KEY = "your_graph_key_here"
NEXT_PUBLIC_URL = "http://localhost:3000"

[env.production.vars]
NEXT_PUBLIC_URL = "https://proposals.farcastle.net/"

[vars.NEXT_PUBLIC_DAO_ID]
type = "secret"
value = "your_dao_id_here"

0 comments on commit 53f5137

Please sign in to comment.