Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
dorukgezici committed Jan 25, 2025
1 parent 3c8267b commit a121c97
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
9 changes: 3 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import vercel from "@astrojs/vercel";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import vercel from "@astrojs/vercel";
import tailwindcss from "@tailwindcss/vite";
import sentry from "@sentry/astro";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "astro/config";
import { loadEnv } from "vite";

const env = loadEnv(process.env.NODE_ENV, process.cwd(), "PUBLIC_");

// https://astro.build/config
export default defineConfig({
site: env.PUBLIC_SITE_URL || "https://ituscheduler.com",
site: "https://ituscheduler.com",
output: "server",
adapter: vercel(),
integrations: [
Expand Down
2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.mjs",
"config": "tailwind.config.js",
"css": "src/styles/globals.css",
"baseColor": "slate",
"cssVariables": true
Expand Down
2 changes: 1 addition & 1 deletion src/pages/info/[page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const { count: schedulesCount } = await supabase.from("schedules").select("*", {
>
Tweets by ITUscheduler
</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<script is:inline async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</section>
</div>
</Layout>
2 changes: 1 addition & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "tailwindcss";
@config "../../tailwind.config.mjs";
@config "../../tailwind.config.js";

@plugin "tailwindcss-animate";
@plugin "@tailwindcss/typography";
Expand Down
2 changes: 1 addition & 1 deletion src/trigger/itu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const fetchMajors = schedules.task({
id: "fetch-majors",
// every day at 6:00 AM
cron: "0 6 * * *",
run: async (payload, { ctx }) => {
run: async (payload) => {
const supabase = createSupabaseClient();

// Format the timestamp using the timezone from the payload
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.mjs → tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('tailwindcss').Config} */
export default {
module.exports = {
darkMode: ["class"],
content: ["./src/**/*.{astro,tsx}"],
theme: {
Expand Down

0 comments on commit a121c97

Please sign in to comment.