Meierschlumpf
Meierschlumpf
Explore posts from servers
HHomarr
Created by Meierschlumpf on 1/19/2025 in #💬・get-help
Can't find my secret key
Posted https://discord.com/channels/972958686051962910/972958689155764326/1330443819409346560 by @ukjent1
I can't find my secret key 😦 I tried "docker exec -it homarr cat /secrets/encryptionKey", but it say cat: /secrets/encryptionKey: No such file or directory
What do I do wrong? 🙂
6 replies
HHomarr
Created by Meierschlumpf on 1/17/2025 in #💬・get-help
Installing Homarr on Railway
Originally posted in https://discord.com/channels/972958686051962910/972958689155764326/1329852421543039017 how do i fix this
Error [TRPCClientError]: fetch failed

at tn.from (.next/server/src/middleware.js:16:3550)

at <unknown> (.next/server/src/middleware.js:16:33664) {

shape: undefined,

data: undefined,

meta: undefined,

[cause]: TypeError: fetch failed

at tg (.next/server/src/middleware.js:16:7535)

at async t_ (.next/server/src/middleware.js:16:7637) {

[cause]: [AggregateError: ] { code: 'ECONNREFUSED' }

}

}
Error [TRPCClientError]: fetch failed

at tn.from (.next/server/src/middleware.js:16:3550)

at <unknown> (.next/server/src/middleware.js:16:33664) {

shape: undefined,

data: undefined,

meta: undefined,

[cause]: TypeError: fetch failed

at tg (.next/server/src/middleware.js:16:7535)

at async t_ (.next/server/src/middleware.js:16:7637) {

[cause]: [AggregateError: ] { code: 'ECONNREFUSED' }

}

}
47 replies
TTCTheo's Typesafe Cult
Created by Meierschlumpf on 7/13/2023 in #questions
fetch failed with app directory
8 replies
TTCTheo's Typesafe Cult
Created by Meierschlumpf on 2/1/2023 in #questions
How to use getInitialProps within _app.tsx?
I'm trying to get the current color-scheme which is saved in a cookie into the app page. Is there a simple way to do that? I already tried different solutions, which did not work. Currently I have the following:
App.getInitialProps = async ({ ctx }: { ctx: GetServerSidePropsContext }) => ({
colorScheme: getCookie("color-scheme", ctx) || "light",
});
App.getInitialProps = async ({ ctx }: { ctx: GetServerSidePropsContext }) => ({
colorScheme: getCookie("color-scheme", ctx) || "light",
});
But if I try to access the colorScheme in the App function there is noting to find:
const App = (props: AppProps) => {
const {
Component,
pageProps: { session, ...pageProps },
} = props;

console.log(props);

return <Component {...pageProps} />;
};
const App = (props: AppProps) => {
const {
Component,
pageProps: { session, ...pageProps },
} = props;

console.log(props);

return <Component {...pageProps} />;
};
The console.log results in the following:
{
Component: [Function: Home],
pageProps: {
_nextI18Next: {
initialI18nStore: [Object],
initialLocale: 'de',
ns: [Array],
userConfig: [Object]
}
},
__N_SSP: true,
router: ServerRouter {
route: '/',
pathname: '/',
query: {},
asPath: '/',
isFallback: false,
basePath: '',
locale: undefined,
locales: undefined,
defaultLocale: undefined,
isReady: true,
domainLocales: undefined,
isPreview: false,
isLocaleDomain: false
}
}
{
Component: [Function: Home],
pageProps: {
_nextI18Next: {
initialI18nStore: [Object],
initialLocale: 'de',
ns: [Array],
userConfig: [Object]
}
},
__N_SSP: true,
router: ServerRouter {
route: '/',
pathname: '/',
query: {},
asPath: '/',
isFallback: false,
basePath: '',
locale: undefined,
locales: undefined,
defaultLocale: undefined,
isReady: true,
domainLocales: undefined,
isPreview: false,
isLocaleDomain: false
}
}
1 replies