Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Merge pull request #62 from Cloud-Code-AI/pnpm-update
Browse files Browse the repository at this point in the history
feat: removed dev files causing build issue
  • Loading branch information
sauravpanda authored Nov 10, 2024
2 parents 2eb4693 + 4536e96 commit 6cc3476
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 812 deletions.
19 changes: 3 additions & 16 deletions examples/demo/compiled/en/articles/ai_integration.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
{
"title": "",
"description": "",
"author": "Akira Team",
"publishDate": "2024-01-15T00:00:00.000Z",
"modifiedDate": "2024-01-20T00:00:00.000Z",
"category": "Features",
"keywords": [
"AI Assistant",
"Natural Language Processing",
"Chat Interface",
"Code Generation"
],
"author": "Anonymous",
"date": "2024-11-10",
"blocks": [
{
"id": "1",
"type": "paragraph",
"content": ""
},
{
"id": "2",
"type": "heading",
"content": "AI Assistant Integration",
"content": "AI Assistant Integration ",
"metadata": {
"level": 1
}
Expand Down
10 changes: 9 additions & 1 deletion examples/demo/compiled/en/articles/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@
{
"id": "1",
"type": "paragraph",
"content": "{\n \"title\": \"Welcome to Akira Doc\",\n \"description\": \"Get started with Akira Docs - Next-gen documentation powered by AI\",\n \"author\": \"Anonymous\",\n \"publishDate\": \"2024-11-02\",\n \"modifiedDate\": \"2024-11-02\",\n \"category\": \"Getting Started\",\n \"keywords\": [\"Akira Docs\", \"Documentation\", \"AI\"],\n \"blocks\": [\n {\n \"id\": \"1\",\n \"type\": \"paragraph\",\n \"content\": \"Welcome to Akira Docs, the next-generation documentation platform powered by AI. This template will help you get started with creating your own documentation.\"\n },\n {\n \"id\": \"2\",\n \"type\": \"list\",\n \"content\": \"Easy to customize\\nAI-powered search\\nBlock-based content system\\nResponsive design\",\n \"metadata\": {\n \"listType\": \"unordered\"\n }\n },\n {\n \"id\": \"3\",\n \"type\": \"callout\",\n \"content\": \"Start by customizing this template to match your project's needs!\",\n \"metadata\": {\n \"type\": \"info\",\n \"title\": \"Getting Started\"\n }\n }\n ]\n}"
"content": "Welcome to Akira Docs, the next-generation documentation platform powered by AI. This template will help you get started with creating your own documentation."
},
{
"id": "2",
"type": "list",
"content": "Easy to customize\\nAI-powered search\\nBlock-based content system\\nResponsive design",
"metadata": {
"listType": "unordered"
}
}
]
}
8 changes: 8 additions & 0 deletions examples/demo/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ const nextConfig = {
})
return config
},
async rewrites() {
return process.env.NODE_ENV === 'production'
? []
: [
{ source: '/api/files', destination: '/api/files' },
{ source: '/editor/:slug*', destination: '/editor/[...slug]' },
];
},
};

export default nextConfig;
3 changes: 3 additions & 0 deletions examples/demo/src/app/[locale]/[type]/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ import { PageNavigation } from '@/components/layout/PageNavigation'
import { MainTitle, SubTitle } from '@/components/blocks/HeadingBlock'
import { SEO } from '@/components/layout/SEO'
import { NotFound } from '@/components/layout/NotFound'

export const runtime = 'edge'

const PostContainer = ({ children }: { children: React.ReactNode }) => (
<div className="flex-1 min-w-0 px-8 py-6 mx-4 font-sans leading-relaxed relative">
{children}
Expand Down
7 changes: 1 addition & 6 deletions examples/demo/src/app/[locale]/[type]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
'use client'

import React from 'react'
import { Button } from '@/components/ui/button'
import { redirect } from 'next/navigation'
import { getRecentContent } from '@/lib/content'
import { NotFound } from '@/components/layout/NotFound'

const PostContainer = ({ children }: { children: React.ReactNode }) => (
<div className="max-w-4xl mx-auto px-6 font-sans leading-relaxed relative">
{children}
</div>
)
export const runtime = 'edge'

export default function Page({ params }: { params: Promise<{ locale: string, type: string }> }) {
const resolvedParams = React.use(params)
Expand Down
118 changes: 0 additions & 118 deletions examples/demo/src/app/api/files/route.ts

This file was deleted.

Loading

0 comments on commit 6cc3476

Please sign in to comment.