mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-22 05:24:23 +00:00
fix(web): clean up remaining Next.js artifacts in Vite migration
- Add vite-env.d.ts for import.meta.env and asset type declarations
- Remove dead layout.tsx (providers already in main.tsx)
- Fix useSearchParams destructuring to [searchParams] tuple (11 locations)
- Replace process.env.NEXT_PUBLIC_* with import.meta.env.VITE_*
- Fix langbotIcon.src to langbotIcon (Vite returns URL string)
- Fix Link href to Link to for react-router-dom
- Fix navigate({ scroll: false }) to { preventScrollReset: true }
- Fix [router] dependency arrays to [navigate]
- Remove Next.js plugin from tsconfig, set rsc: false in components.json
- Replace next lint with eslint in lint-staged
This commit is contained in:
@@ -518,7 +518,7 @@ export default function WizardPage() {
|
||||
setIsSkipping(false);
|
||||
setShowSkipConfirm(false);
|
||||
navigate('/home');
|
||||
}, [router, t]);
|
||||
}, [navigate, t]);
|
||||
|
||||
// ---- Render ----
|
||||
|
||||
@@ -1212,7 +1212,7 @@ function StepDone() {
|
||||
}
|
||||
setIsCompleting(false);
|
||||
navigate('/home/bots');
|
||||
}, [router, t]);
|
||||
}, [navigate, t]);
|
||||
|
||||
return (
|
||||
<div className="relative flex flex-col items-center justify-center h-full min-h-[400px]">
|
||||
@@ -1242,7 +1242,7 @@ function StepDone() {
|
||||
{t('wizard.done.backToWorkbench')}
|
||||
</Button>
|
||||
|
||||
<style jsx>{`
|
||||
<style>{`
|
||||
@keyframes wizardConfetti {
|
||||
0% {
|
||||
transform: translateY(100vh) rotate(0deg);
|
||||
|
||||
Reference in New Issue
Block a user