Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added redirect generation for Netlify
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
var fs = require('fs'); | ||
|
||
module.exports = { | ||
|
||
run: function(path, options, callback) { | ||
var modified = options.modified || false; | ||
var finished = options.finished || false; | ||
|
||
// Empty path means it's the last thing it does | ||
if (!path) { | ||
fs.createReadStream('redirects').pipe(fs.createWriteStream('output/_redirects')); | ||
} | ||
|
||
return callback(); | ||
} | ||
|
||
}; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* https://hackerspace.sg/:splat 301 | ||
|
||
/calendar/hackerspacesg-events https://hackerspace.sg/calendar 301 | ||
/calendar/geektechdevdesign-events 404 | ||
/calendar/rojak-calendar https://hackerspace.sg/calendar 301 | ||
/readme-txt/membership/ https://hackerspace.sg/membership 301 | ||
/intertubes/ 404 | ||
/readme-txt/donations/ https://hackerspace.sg/membership 301 | ||
/about-us/ https://hackerspace.sg/about 301 | ||
/social/location/ https://hackerspace.sg/location 301 | ||
/chat https://scrollback.io/hackerspacesg/ 302 | ||
/feed 404 | ||
/rss.xml 404 |