Skip to content

Commit 9e72ffe

Browse files
committed
chore(deps): migrate nextjs to 16 and upgraded other dependencies
1 parent 942cf0b commit 9e72ffe

6 files changed

Lines changed: 3963 additions & 5227 deletions

File tree

components/main/star-background.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
"use client";
22

3-
import { Points, PointMaterial } from "@react-three/drei";
4-
import { Canvas, type PointsProps, useFrame } from "@react-three/fiber";
3+
import {
4+
Points,
5+
PointMaterial,
6+
type PointsInstancesProps,
7+
} from "@react-three/drei";
8+
import { Canvas, useFrame } from "@react-three/fiber";
59
import * as random from "maath/random";
610
import { useState, useRef, Suspense } from "react";
711
import type { Points as PointsType } from "three";
812

9-
export const StarBackground = (props: PointsProps) => {
13+
export const StarBackground = (props: PointsInstancesProps) => {
1014
const ref = useRef<PointsType | null>(null);
1115
const [sphere] = useState(() =>
12-
random.inSphere(new Float32Array(5000), { radius: 1.2 })
16+
random.inSphere(new Float32Array(5000), { radius: 1.2 }),
1317
);
1418

1519
useFrame((_state, delta) => {

eslint.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineConfig } from "eslint/config";
2+
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
9+
export default defineConfig([
10+
{
11+
extends: [...nextCoreWebVitals],
12+
},
13+
]);

0 commit comments

Comments
 (0)