diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 81075c4..675ae08 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,10 +34,4 @@ jobs: env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - run: netlify deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --prod --dir=.next --functions=netlify/functions - - - name: Publish to production - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_V2 }} - run: netlify deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --prod --dir=.next --functions=netlify/functions --prod + run: netlify deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --prod --dir=.next diff --git a/.gitignore b/.gitignore index f8952af..03eab29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ node_modules .next .DS_Store + +# Local Netlify folder +.netlify diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..28afb57 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,6 @@ +[build] + command = "yarn build" + publish = ".next" + +[[plugins]] + package = "@netlify/plugin-nextjs" diff --git a/package.json b/package.json index fa23801..d888da3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "dependencies": { + "@netlify/plugin-nextjs": "^5.2.2", "next": "^14.2.3", "nextra": "^2.13.4", "nextra-theme-docs": "^2.13.4", @@ -12,4 +13,4 @@ "start": "next start", "fixlinks": "node scripts/fixRelativeLinks.js" } -} \ No newline at end of file +} diff --git a/pages/devs/how-to-create-topic.mdx b/pages/devs/how-to-create-topic.mdx index 7fd77b8..f9e6ab7 100644 --- a/pages/devs/how-to-create-topic.mdx +++ b/pages/devs/how-to-create-topic.mdx @@ -72,3 +72,4 @@ An explanation in more detail of some of these fields. - `InferenceLogic` defines a WASM blockless function to trigger the call to the `main.py` file in the worker. These values are expected to be reused from the example. - `WeightCadence` and `InferenceCadence`: the cadence (in seconds) at which the inference and weight adjustment cycles are run. Weight adjustment will use several runs of inferences to make the adjustment, so normally the weight cadence will be several times higher than the inference. This can be adjusted to fit each particular predictive case. - `DefaultArg` value will be passed as an argument to the python script, i.e. when the worker receives the request, it will attempt to run `python3 `. This will be used in the scoring stage to request inferences from the chain. + diff --git a/yarn.lock b/yarn.lock index f6f4aba..fe24d57 100644 --- a/yarn.lock +++ b/yarn.lock @@ -125,6 +125,11 @@ "@napi-rs/simple-git-win32-arm64-msvc" "0.1.16" "@napi-rs/simple-git-win32-x64-msvc" "0.1.16" +"@netlify/plugin-nextjs@^5.2.2": + version "5.2.2" + resolved "https://registry.yarnpkg.com/@netlify/plugin-nextjs/-/plugin-nextjs-5.2.2.tgz#3c283d335001f9e0fbcb4db75557e5fe1660db72" + integrity sha512-jV/P7o8+v1XaEGb7wvFfkF1fSLggAxjg7WYoBPkD3R93bsI6xmCDKBcUJ/6g7lqECRXt4dGKApSFtGk/pUmAHw== + "@next/env@14.2.3": version "14.2.3" resolved "https://registry.yarnpkg.com/@next/env/-/env-14.2.3.tgz#d6def29d1c763c0afb397343a15a82e7d92353a0"