Fix/issue 266 security updates#269
Open
Om7035 wants to merge 5 commits into
Open
Conversation
…e#246) - Created Netlify Edge Function to intercept /post/* routes - Edge Function fetches quote data from GraphQL API and injects dynamic OG tags - Added fallback OG image (og-default.jpg) for quotes without images - Updated index.html with improved default metadata - Configured netlify.toml to route /post/* through Edge Function This ensures social media scrapers (iMessage, Slack, Discord, Facebook) see quote-specific metadata instead of generic site information.
This fixes the 'Connection refused' error on frontend-only PRs where no corresponding Railway backend exists. The preview will now default to the production API.
- Use creator avatar for og:image instead of post URL - Add proper GraphQL error handling in Edge Function
✅ Deploy Preview for quotevote ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
Can we merge this one? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses Issue #266 by updating multiple outdated dependencies in both the client and server applications to fix known security vulnerabilities.
Changes
Client (
client/package.json)axiosto^1.7.7(Fixes known vulnerabilities in 0.21.1)lodashto^4.17.21(Fixes prototype pollution)momentto^2.30.1(Latest version)Server (
server/package.json)mongoosefrom^5.9.13to^6.12.0(Major version update for security and features)axiosto^1.7.7lodashto^4.17.21requestdependency (Deprecated and unused in codebase)Code Changes
server/app/server.js: Removed deprecated Mongoose connection options (useNewUrlParser,useUnifiedTopology, etc.) which are no longer needed/supported in Mongoose 6+.Testing
npm installcompletes successfully in both client and server.Checklist
client/package.jsonserver/package.jsonserver/app/server.jsfor Mongoose 6 compatibility