fix(frontend): add edge runtime config for dynamic routes
This commit is contained in:
parent
88e4596b62
commit
bc64a76ce2
2 changed files with 22 additions and 22 deletions
|
|
@ -52,6 +52,9 @@ const steps = [
|
||||||
{ id: 4, title: "Perguntas Adicionais", icon: MessageSquare },
|
{ id: 4, title: "Perguntas Adicionais", icon: MessageSquare },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
export const runtime = 'edge';
|
||||||
|
|
||||||
export default function JobApplicationPage({
|
export default function JobApplicationPage({
|
||||||
params,
|
params,
|
||||||
}: {
|
}: {
|
||||||
|
|
@ -237,8 +240,7 @@ export default function JobApplicationPage({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={step.id}
|
key={step.id}
|
||||||
className={`flex flex-col items-center gap-2 ${
|
className={`flex flex-col items-center gap-2 ${isActive
|
||||||
isActive
|
|
||||||
? "text-primary"
|
? "text-primary"
|
||||||
: isCompleted
|
: isCompleted
|
||||||
? "text-primary/60"
|
? "text-primary/60"
|
||||||
|
|
@ -248,8 +250,7 @@ export default function JobApplicationPage({
|
||||||
<div
|
<div
|
||||||
className={`
|
className={`
|
||||||
w-8 h-8 rounded-full flex items-center justify-center border-2 transition-colors
|
w-8 h-8 rounded-full flex items-center justify-center border-2 transition-colors
|
||||||
${
|
${isActive
|
||||||
isActive
|
|
||||||
? "border-primary bg-primary text-primary-foreground"
|
? "border-primary bg-primary text-primary-foreground"
|
||||||
: isCompleted
|
: isCompleted
|
||||||
? "border-primary bg-primary/10 text-primary"
|
? "border-primary bg-primary/10 text-primary"
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,9 @@ import Link from "next/link";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { motion } from "framer-motion";
|
import { motion } from "framer-motion";
|
||||||
|
|
||||||
|
|
||||||
|
export const runtime = 'edge';
|
||||||
|
|
||||||
export default function JobDetailPage({
|
export default function JobDetailPage({
|
||||||
params,
|
params,
|
||||||
}: {
|
}: {
|
||||||
|
|
@ -185,8 +188,7 @@ export default function JobDetailPage({
|
||||||
onClick={() => setIsFavorited(!isFavorited)}
|
onClick={() => setIsFavorited(!isFavorited)}
|
||||||
>
|
>
|
||||||
<Heart
|
<Heart
|
||||||
className={`h-4 w-4 ${
|
className={`h-4 w-4 ${isFavorited
|
||||||
isFavorited
|
|
||||||
? "fill-red-500 text-red-500"
|
? "fill-red-500 text-red-500"
|
||||||
: ""
|
: ""
|
||||||
}`}
|
}`}
|
||||||
|
|
@ -198,8 +200,7 @@ export default function JobDetailPage({
|
||||||
onClick={() => setIsBookmarked(!isBookmarked)}
|
onClick={() => setIsBookmarked(!isBookmarked)}
|
||||||
>
|
>
|
||||||
<Bookmark
|
<Bookmark
|
||||||
className={`h-4 w-4 ${
|
className={`h-4 w-4 ${isBookmarked ? "fill-current" : ""
|
||||||
isBookmarked ? "fill-current" : ""
|
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -218,8 +219,7 @@ export default function JobDetailPage({
|
||||||
className="flex-1"
|
className="flex-1"
|
||||||
>
|
>
|
||||||
<Heart
|
<Heart
|
||||||
className={`h-4 w-4 mr-1 ${
|
className={`h-4 w-4 mr-1 ${isFavorited
|
||||||
isFavorited
|
|
||||||
? "fill-red-500 text-red-500"
|
? "fill-red-500 text-red-500"
|
||||||
: ""
|
: ""
|
||||||
}`}
|
}`}
|
||||||
|
|
@ -233,8 +233,7 @@ export default function JobDetailPage({
|
||||||
className="flex-1"
|
className="flex-1"
|
||||||
>
|
>
|
||||||
<Bookmark
|
<Bookmark
|
||||||
className={`h-4 w-4 mr-1 ${
|
className={`h-4 w-4 mr-1 ${isBookmarked ? "fill-current" : ""
|
||||||
isBookmarked ? "fill-current" : ""
|
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
{isBookmarked ? "Salvo" : "Salvar"}
|
{isBookmarked ? "Salvo" : "Salvar"}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue