Skip to content

Commit

Permalink
Merge pull request #12 from seemorg/dev
Browse files Browse the repository at this point in the history
Prod deployment
  • Loading branch information
ahmedriad1 authored May 3, 2024
2 parents a2d0192 + 611f307 commit ccb265c
Show file tree
Hide file tree
Showing 111 changed files with 1,988 additions and 1,683 deletions.
11 changes: 7 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Drizzle
# Get the Database URL from the "prisma" dropdown selector in PlanetScale.
# Change the query params at the end of the URL to "?ssl={"rejectUnauthorized":true}"
DATABASE_URL='mysql://YOUR_MYSQL_URL_HERE?ssl={"rejectUnauthorized":true}'
TYPESENSE_API_KEY=secret
TYPESENSE_URL=http://localhost:8108

DATABASE_URL='postgresql://postgres:password@localhost:5432/your_db_name'

RESEND_API_KEY=''
RESEND_AUDIENCE_ID=''
13 changes: 0 additions & 13 deletions drizzle.config.ts

This file was deleted.

2 changes: 1 addition & 1 deletion i18n.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const locales = [
export const defaultLocale = "en-US" as const;

const config = {
namespaces: ["common", "home", "entities", "reader"] as const,
namespaces: ["common", "home", "entities", "reader", "meta"] as const,
localePrefix: "as-needed" as const,
namespacedRoutes: {
"*": ["common", "entities"],
Expand Down
9 changes: 5 additions & 4 deletions locales/ar/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"advanced-search": "بحث متقدم",
"load-more": "تحميل المزيد",
"clear-all": "مسح الكل",
"search": "البحث",
"pagination": {
"previous": "السابقة",
"next": "التالي",
Expand Down Expand Up @@ -84,7 +85,7 @@
"contribute": {
"title": "ساهم",
"about": {
"title": "حول سيمور",
"title": "عن أصول",
"description": "استقر على تهذيب الأدوات القادمة، باستخدام أحدث تكنولوجيات الذكاء الاصطناعي."
},
"add-text": {
Expand All @@ -106,8 +107,8 @@
}
},
"footer": {
"headline": "Usul - أكبر مكتبة إسلامية رقمية",
"description": "تخدم مؤسسة Usul.ai أكثر من 8,000 نص إسلامي من مشروع OpenITI. هدفنا هو تسهيل قراءة والبحث والبحث في النصوص الكلاسيكية. اشترك أدناه لتلقي تحديثات شهرية حول عملنا.",
"headline": "أصول - أداة البحث للنصوص الإسلامية",
"description": "ويخدم Usul.ai أكثر من 8000 نص إسلامي من هيئة OpenITI. هدفنا هو جعل القراءة والبحث والبحث والبحث عن النصوص الكلاسيكية. اشترك أدناه لتلقي تحديثات شهرية عن أعمالنا.",
"email-address": "البريد الأكتروني",
"subscribe": "إشترِك",
"copyright": "{year, number, nogroup} مؤسسة Usul.ai. جميع الحقوق محفوظة."
Expand All @@ -118,7 +119,7 @@
"latin-names": "الأسماء اللاتينية",
"author-arabic-names": "أسماء المؤلف العربية",
"author-latin-names": "أسماء المؤلف اللاتينية",
"author-bio": "أسماء المؤلف اللاتينية",
"author-bio": "نبذة عن المؤلف",
"author-regions": "مناطق المؤلف",
"lived": "عاش",
"died": "توفي",
Expand Down
2 changes: 1 addition & 1 deletion locales/ar/home.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"headline": "أكبر مكتبة إسلامية في العالم",
"headline": "أداة البحث للنصوص الإسلامية",
"try": "جرّب: ",
"sections": {
"collections": "مجموعات",
Expand Down
7 changes: 7 additions & 0 deletions locales/ar/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"author-page": {
"title": "{author} | كتبه و مؤلفاته",
"description-secondary": "اقرأ كتب {author}. {author}، المعروف أيضًا باسم {authorSecondary}، تأليف كتب {books}.",
"description": "اقرأ كتب {author}. {author} تأليف كتب {books}."
}
}
1 change: 0 additions & 1 deletion locales/ar/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "الملاحظات",
"bookmarks": "العلامات",
"search": "البحث",
"content": "المحتوى",
"coming-soon": {
"title": "قريباً",
Expand Down
1 change: 1 addition & 0 deletions locales/bn/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "উন্নত অনুসন্ধান",
"load-more": "আরও লোড করুন",
"search": "অনুসন্ধান",
"clear-all": "সব মুছে দিন",
"pagination": {
"previous": "পূর্ববর্তী",
Expand Down
1 change: 1 addition & 0 deletions locales/bn/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/bn/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "নোট",
"bookmarks": "বুকমার্কস",
"search": "অনুসন্ধান",
"content": "বিষয়বস্তু",
"coming-soon": {
"title": "শীঘ্রই আসছে",
Expand Down
3 changes: 2 additions & 1 deletion locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"advanced-search": "Advanced Search",
"load-more": "Load More",
"clear-all": "Clear all",
"search": "Search",
"pagination": {
"previous": "Previous",
"next": "Next",
Expand Down Expand Up @@ -118,7 +119,7 @@
"latin-names": "Latin names",
"author-arabic-names": "Author Arabic names",
"author-latin-names": "Author Latin names",
"author-bio": "Author Latin names",
"author-bio": "Author Bio",
"author-regions": "Author regions",
"lived": "Lived",
"died": "Died",
Expand Down
7 changes: 7 additions & 0 deletions locales/en/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"author-page": {
"title": "{author} | Books and Texts",
"description-secondary": "Read {author}'s books. {author}, also known as {authorSecondary}, authored {books} books.",
"description": "Read {author}'s books. {author} authored {books} books."
}
}
1 change: 0 additions & 1 deletion locales/en/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "Notes",
"bookmarks": "Bookmarks",
"search": "Search",
"content": "Content",
"coming-soon": {
"title": "Coming Soon",
Expand Down
1 change: 1 addition & 0 deletions locales/es/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "Búsqueda Avanzada",
"load-more": "Cargar Más",
"search": "Buscar",
"clear-all": "Borrar todo",
"pagination": {
"previous": "Anterior",
Expand Down
1 change: 1 addition & 0 deletions locales/es/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/es/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "Notas",
"bookmarks": "Marcadores",
"search": "Buscar",
"content": "Contenido",
"coming-soon": {
"title": "Próximamente",
Expand Down
1 change: 1 addition & 0 deletions locales/fa/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "جستجوی پیشرفته",
"load-more": "بارگذاری بیشتر",
"search": "جستجو",
"clear-all": "پاک کردن همه",
"pagination": {
"previous": "قبلی",
Expand Down
1 change: 1 addition & 0 deletions locales/fa/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/fa/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "یادداشت‌ها",
"bookmarks": "نشانک‌ها",
"search": "جستجو",
"content": "محتوا",
"coming-soon": {
"title": "به زودی",
Expand Down
1 change: 1 addition & 0 deletions locales/fr/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "Recherche Avancée",
"load-more": "Charger plus",
"search": "Recherche",
"clear-all": "Effacer tout",
"pagination": {
"previous": "Précédent",
Expand Down
1 change: 1 addition & 0 deletions locales/fr/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/fr/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "Notes",
"bookmarks": "Signets",
"search": "Recherche",
"content": "Contenu",
"coming-soon": {
"title": "Prochainement",
Expand Down
1 change: 1 addition & 0 deletions locales/ha/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "Bincike Mai Zurfi",
"load-more": "Daukar Karin",
"search": "Bincike",
"clear-all": "Goge duk",
"pagination": {
"previous": "Na Baya",
Expand Down
1 change: 1 addition & 0 deletions locales/ha/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/ha/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "Bayanai",
"bookmarks": "Alamomin Shafi",
"search": "Bincike",
"content": "Abun ciki",
"coming-soon": {
"title": "Da zuwa",
Expand Down
1 change: 1 addition & 0 deletions locales/hi/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "उन्नत खोज",
"load-more": "और लोड करें",
"search": "खोज",
"clear-all": "सभी साफ़ करें",
"pagination": {
"previous": "पिछला",
Expand Down
1 change: 1 addition & 0 deletions locales/hi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/hi/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "नोट्स",
"bookmarks": "बुकमार्क्स",
"search": "खोज",
"content": "सामग्री",
"coming-soon": {
"title": "जल्द आ रहा है",
Expand Down
1 change: 1 addition & 0 deletions locales/ms/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "Carian Lanjutan",
"load-more": "Muat Lebih",
"search": "Carian",
"clear-all": "Kosongkan semua",
"pagination": {
"previous": "Sebelumnya",
Expand Down
1 change: 1 addition & 0 deletions locales/ms/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/ms/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "Nota",
"bookmarks": "Penanda Buku",
"search": "Carian",
"content": "Kandungan",
"coming-soon": {
"title": "Akan Datang",
Expand Down
1 change: 1 addition & 0 deletions locales/ps/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "لټون پرمختللی",
"load-more": "نور ولولې",
"search": "لټون",
"clear-all": "ټول پاک کړئ",
"pagination": {
"previous": "مخکې",
Expand Down
1 change: 1 addition & 0 deletions locales/ps/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/ps/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "یاداښتونه",
"bookmarks": "لانچینی",
"search": "لټون",
"content": "مندنه",
"coming-soon": {
"title": "ژر به راشي",
Expand Down
1 change: 1 addition & 0 deletions locales/ru/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "Расширеннный поиск",
"load-more": "Загрузить больше",
"search": "Поиск",
"clear-all": "Очистить все",
"pagination": {
"previous": "Предыдущее",
Expand Down
1 change: 1 addition & 0 deletions locales/ru/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/ru/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "Заметки",
"bookmarks": "Закладки",
"search": "Поиск",
"content": "Содержание",
"coming-soon": {
"title": "Скоро будет",
Expand Down
1 change: 1 addition & 0 deletions locales/so/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "Raadin Horumarsan",
"load-more": "Ku Shub wax dheeraad ah",
"search": "Raadi",
"clear-all": "Nadiifi dhammaan",
"pagination": {
"previous": "Kii Hore",
Expand Down
1 change: 1 addition & 0 deletions locales/so/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/so/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "Qoraallo",
"bookmarks": "Xusuus-qoryo",
"search": "Raadi",
"content": "Mawduuc",
"coming-soon": {
"title": "Dhawaan Imaanaysa",
Expand Down
1 change: 1 addition & 0 deletions locales/tr/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "Gelişmiş Arama",
"load-more": "Daha Fazla Yükle",
"search": "Arama",
"clear-all": "Tümünü Temizle",
"pagination": {
"previous": "Önceki",
Expand Down
1 change: 1 addition & 0 deletions locales/tr/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/tr/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "Notlar",
"bookmarks": "Yer İşaretleri",
"search": "Arama",
"content": "İçerik",
"coming-soon": {
"title": "Yakında",
Expand Down
1 change: 1 addition & 0 deletions locales/ur/common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"advanced-search": "اعلیٰ تلاش",
"load-more": "مزید لوڈ کریں",
"search": "تلاش",
"clear-all": "سب صاف کریں",
"pagination": {
"previous": "پچھلا",
Expand Down
1 change: 1 addition & 0 deletions locales/ur/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 0 additions & 1 deletion locales/ur/reader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"notes": "نوٹس",
"bookmarks": "بُک مارکس",
"search": "تلاش",
"content": "مواد",
"coming-soon": {
"title": "جلد آ رہا ہے",
Expand Down
15 changes: 15 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ const withNextIntl = createNextIntlPlugin();

/** @type {import("next").NextConfig} */
const config = {
headers: async () => {
return [
{
// Cache sitemap
source: "/sitemap.xml",
headers: [
{
key: "Cache-Control",
value:
"public, max-age=60, s-maxage=600, stale-while-revalidate=14400, stale-if-error=14400",
},
],
},
];
},
redirects: async () => {
return [
{
Expand Down
Loading

0 comments on commit ccb265c

Please sign in to comment.