Skip to content

Commit

Permalink
Merge pull request #24 from carbonplan/Shane98c/plausible
Browse files Browse the repository at this point in the history
add plausible
  • Loading branch information
Shane98c authored Feb 7, 2025
2 parents b211626 + fef32a8 commit 693cb19
Show file tree
Hide file tree
Showing 5 changed files with 560 additions and 547 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
Expand Down
1,082 changes: 541 additions & 541 deletions notebooks/future-risk.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "tracking and visualizing fires in offset projects",
"main": "index.js",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
"dev": "NODE_OPTIONS='--openssl-legacy-provider' next",
"build": "NODE_OPTIONS='--openssl-legacy-provider' next build",
"start": "NODE_OPTIONS='--openssl-legacy-provider' next start"
},
"author": "freeman-lab",
"license": "MIT",
Expand Down
16 changes: 15 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
import React from 'react'
import Script from 'next/script'
import 'mapbox-gl/dist/mapbox-gl.css'
import '@carbonplan/components/globals.css'
import '@carbonplan/components/fonts.css'

export default function App({ Component, pageProps }) {
return <Component {...pageProps} />
return (
<>
<Component {...pageProps} />
{process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' && (
<Script
strategy='lazyOnload'
data-domain='carbonplan.org'
data-api='https://carbonplan.org/proxy/api/event'
src='https://carbonplan.org/js/script.file-downloads.outbound-links.js'
/>
)}
</>
)
}
1 change: 0 additions & 1 deletion scripts/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def get_project_fire_stats(fires, opr_id, start_dt, termination_dt):
@click.option("--upload-to", type=str, default=None, help="Where to put the workflow contents")
@click.option("--version", type=int, default=0, help="Version to append")
def main(upload_to, version):

print("loading fire data")
fires = load_fires()

Expand Down

0 comments on commit 693cb19

Please sign in to comment.