a66db56156
fix: resolve API URL duplication, CORS issues, and image localhost URLs
...
- Fix duplicate /api/v1 in analytics.ts API calls
- Add STRAPI_PUBLIC_URL env var for public CMS access
- Update strapi.service to use public URL for images instead of localhost
- Images now use https://cms.placebo.mk instead of http://localhost:1337
2026-02-28 23:29:54 +01:00
fa7dcc2b08
feat: add general category, fix header wrapping, show last 5 live blog updates
2026-02-28 18:47:11 +01:00
3e61fe5694
fix: ensure slug and excerpt are never null to pass validation
...
- Extract slug generation to separate variable before using in DTO
- Convert null description to empty string for excerpt field
- Prevents class-validator from rejecting null values
- Fixes 'slug must be a string type' validation errors
2026-02-28 18:22:48 +01:00
a5008a3646
fix: add slug auto-generation fallback for articles without slugs
...
- Add generateSlug() helper to create URL-friendly slugs from titles
- Apply slug fallback in syncArticles() and syncSingleArticle()
- Handles articles created before slug field was added to schema
- Prevents 'slug cannot be null' database constraint errors
2026-02-28 18:02:33 +01:00
cbdb801655
fix: disable Authorization header for Strapi public API access
...
- Modify getHeaders() to always return empty object
- Prevents sending invalid Bearer token that causes 401 errors
- Strapi Public role permissions configured for unauthenticated access
- Will allow proper article sync from Strapi to backend
2026-02-28 17:46:59 +01:00
b39972102a
fix: use APP_GUARD provider for global authentication guard
...
- Replace manual guard instantiation with DI-managed APP_GUARD provider
- Fixes request timeout issue caused by improper Passport JWT strategy initialization
- Add @Public() decorator to remaining sync endpoints for public access
- Remove unused Reflector import from main.ts
2026-02-28 16:49:24 +01:00
8fbde18d02
feat: add GET endpoint for sync/all for easier testing
2026-02-28 16:33:27 +01:00
ac610e6f6a
fix: add missing slug and description fields to Article schema and fix auth header
2026-02-28 16:10:48 +01:00
33008b64ce
fix: enhance CORS configuration with explicit methods and headers
2026-02-28 15:33:45 +01:00
76963f6eea
aa
2026-02-27 20:10:49 +01:00
bfc7e76f17
fix: disable database sync and simplify backend startup
2026-02-27 20:10:03 +01:00
4a22e8a18a
feat: auto-seed admin user on backend startup
2026-02-27 16:06:08 +01:00
d573846e5c
fix: configure CORS to allow frontend and PWA domains
...
- Update backend main.ts to include www.placebo.mk in allowed origins
- Add logging to show which origins are allowed
- Set FRONTEND_URL, PWA_URL, STRAPI_URL env vars in docker-compose
- This fixes 'No Access-Control-Allow-Origin header' CORS errors
2026-02-24 19:28:54 +01:00
2efdf20f88
refactor: use npm prune --omit=dev instead of deprecated --production flag
2026-02-24 17:41:38 +01:00
9013bc51f3
docker files fix
2026-02-24 12:58:38 +01:00
3af4b92e1b
legacy
2026-02-23 05:28:46 +01:00
dc93a8b652
compose coolify
2026-02-23 04:51:14 +01:00
69833d2067
prod
2026-02-22 05:30:47 +01:00
d041575600
logs removed
2026-02-22 04:49:38 +01:00
57864e00da
push notification
...
fix implemented
2026-02-22 04:00:20 +01:00
0bbf2ab56f
push notification implemented
...
need testing
2026-02-22 02:23:41 +01:00
f1f16a80a5
pwa ready
2026-02-22 01:11:20 +01:00
10fe702749
liveblog update fix
2026-02-16 19:15:31 +01:00
46eb41aaa5
category field added
...
implemented ctegory logic, ditional pages added
2026-02-06 03:35:28 +01:00
add12b2fbf
hero section added
...
hero article menagment implemented in admin UI
2026-02-06 02:14:10 +01:00
b8779e5a35
social share up and running
2026-02-05 03:04:19 +01:00
000ebd388a
article detail page @public
2026-02-05 00:10:23 +01:00
d7b82c0ec9
comment func implemented
2026-02-04 23:08:47 +01:00
3718882f5b
another auth checkpoint
...
webhook issue resolved
2026-02-04 22:36:28 +01:00
c6e602d354
docker dependecies fixed
2026-02-04 20:03:17 +01:00
42002f8e6f
auth checkpoint
...
auth dependecies not instaled in dev container
2026-02-04 19:24:03 +01:00
7378d37b36
sync working as intended
2026-02-04 00:52:05 +01:00
9ca05f5ea1
delete/archive implemented
2026-02-03 23:14:36 +01:00
89b8687431
video func implemented
2026-02-03 21:18:25 +01:00
6467e21019
markdown img insert work as intended
2026-02-03 19:53:29 +01:00
28609a6492
img shown succesfully
2026-02-03 18:47:42 +01:00
7d3bc2a014
setup completed
2026-02-03 17:45:38 +01:00
acfbc80d1a
unpublish fix
2026-02-01 13:57:16 +01:00
0c2433cac6
docker implementation
2026-02-01 13:32:37 +01:00
2ff76ffda5
fixed strapi webhook endpoint
2026-01-29 09:40:23 +01:00
4ccb65ba88
pin to homepage and liveblog ticker
2026-01-29 06:06:54 +01:00
5a457fa99f
checkpoint
...
need polishing
2026-01-29 05:13:52 +01:00
0351726eeb
live blog implemented
2026-01-29 04:01:55 +01:00
e8893c1aae
ticket implemented
2026-01-29 01:26:48 +01:00
c1b5865feb
article detail page
...
db error fixed
2026-01-10 20:16:08 +01:00
71dfd86187
basic structure setup
2026-01-10 19:41:04 +01:00