From ea1bb24cbfece740093868bf120c170b122c380a Mon Sep 17 00:00:00 2001 From: Nathan Kluth Date: Thu, 9 Jan 2025 10:09:00 -0700 Subject: [PATCH] Node version (#207) --- examples/next/app/api/swapi/route.ts | 2 +- package.json | 5 ++++- packages/webui/tailwind.config.js | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/next/app/api/swapi/route.ts b/examples/next/app/api/swapi/route.ts index 9166760..028c921 100644 --- a/examples/next/app/api/swapi/route.ts +++ b/examples/next/app/api/swapi/route.ts @@ -1,7 +1,7 @@ import axios from 'axios'; import { NextResponse } from 'next/server'; -const SWAPI_URL = 'https://swapi.dev/api/people/1'; +const SWAPI_URL = 'https://swapi.py4e.com/api/people/1'; export async function GET() { // Look - just one call to the SWAPI endpoint! diff --git a/package.json b/package.json index b016423..1734e87 100644 --- a/package.json +++ b/package.json @@ -74,5 +74,8 @@ "hooks": { "pre-commit": "lint-staged" } + }, + "engines": { + "node": ">=18.0.0" } -} +} \ No newline at end of file diff --git a/packages/webui/tailwind.config.js b/packages/webui/tailwind.config.js index 2750995..4569453 100644 --- a/packages/webui/tailwind.config.js +++ b/packages/webui/tailwind.config.js @@ -1,5 +1,6 @@ /** @type {import('tailwindcss').Config} */ -const defaultTheme = require('tailwindcss/defaultTheme'); +import defaultTheme from 'tailwindcss/defaultTheme'; + export default { darkMode: ['class'], content: ['./src/index.html', './src/**/*.tsx'],