import Head from 'next/head' import Image from 'next/image' import PocketBase from 'pocketbase' import styles from '../styles/Home.module.css' console.log("username:" + process.env.USERNAME); const client = new PocketBase('https://backend.saachen.lu'); const adminAuthData = await client.admins.authViaEmail(process.env.USERNAME, process.env.PASSWORD).catch((error) =>{console.log("It be a feature")}); //console.log(adminAuthData); const resultList = await client.records.getList('forums', 1, 50, { filter: 'created >= "2022-01-01 00:00:00"', }); //console.log(resultList); export default function Home() { return (
hihi {/*{console.log(adminAuthData)}*/}
{resultList.items.map((item, i) => (
// Show all things which you want
{i}
{item.title}
{i}
{item.description}
)) }

Welcome to kakapoopoo.js!

Get started by editing{' '} pages/index.js

Documentation →

Find in-depth information about Next.js features and API.

Learn →

Learn about Next.js in an interactive course with quizzes!

Examples →

Discover and deploy boilerplate example Next.js projects.

Deploy →

Instantly deploy your Next.js site to a public URL with Vercel.

) }