I go to url http://local:3000/customize/collection/doremon1234a/schema/dfs/template/50
Enven I provide [colName - doremon1234a], [schemaName - dfs], [templateId - 50] But it still gets errors
I try to remove .next folder, and clone source code again. But it does not work
Anyone gets the same issue like me.
Thanks
THis is my folder structure
my source code
import { useRouter } from "next/router";
import React, { useState, useEffect } from "react";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { useTranslation } from "next-i18next";
import { i18n } from "@/config";
function TemplateId() {
const { t } = useTranslation("common");
const router = useRouter();
const { colName, schemaName, templateId } = router.query;
return (
<>
<div>{templateId}</div>
</>
);
}
export async function getServerSideProps({ locale }) {
try {
const translations = await serverSideTranslations(locale, ["common"], {
i18n,
});
return {
props: {
...translations,
},
};
} catch (error) {
console.log("TemplateId: ", error);
}
}
export default TemplateId;